   BITBLT 24 bit true color images
  Hi, I am trying to write an app that displays a 24 bit image to a screen. I have got the application to work for 8 bits, but when I try to use it for 24 bits, the image comes up (but the colors are all messed up), however windows seems to map its palette to the image. The way I go about displaying the image is first I create a header LPBITMAPINFO that contains all the proper information for the image. It includes no palette.  I have a utility I wrote that reads a bitmap into a image_header type ive defined. image_head is of this type. I then basically execute the following code:   numbytes = image_head->width*image_head->height*3 ;    HDC hScreenDC = GetWindowDC(NULL);   LPVOID * Dibbits = (LPVOID*)malloc(numbytes);   HBITMAP hBitmap = CreateDIBSection(hScreenDC, lpbi, DIB_RGB_COLORS, Dibbits, NULL, 0 );   CBitmap cbit ;   cbit.Attach(hBitmap);   cbit.SetBitmapBits(numbytes,image_head->imagebits);   delete [](BYTE *)lpbi;memDC.CreateCompatibleDC(m_view->m_pDC);   oldBitmap = memDC.SelectObject(&cbit);    m_view->m_MemDC->BitBlt(0, 0, image_head->width, image_head->height, &memDC, 0, 0, SRCCOPY);   m_view->InvalidateSimScreen();  memDC.SelectObject(oldBitmap);mview is a top level application class that I have. This displays the bitmap, but with totally messed up color. Does anyone know how to resolve this??? Thanks for any help you can give  