George,
Rimmers book mentions (this is Win3.1 era remember) that to get a good source of 24 bit bmps was to open an 8 bit one and SaveAs 24 bit. You might create a 16,16 red, green and blue bmps in 256 and 24bit and hex browse the files to see what's in there compared to what's in your memory struct. It really sounds like you've got a little offset problem.
>Nope, sure haven't, but I have checked the SDK 'til I'm blue in the face. Thanks for the reminder. Maybe the KB in the MSDN library has something.
>
>Figured out the color thing. the biClrUsed member of the BITMAPINFO structure should be set to 24 for 24 bit color. The example I saw in the SDK didn't set this member at all. After setting it to 2 ^ bit-per-pixel (as you do with 256 or fewer colors) and having it not work, I just set it to the bpp and the colors are fine. Still having that 20 pix or so shift. Even tried it with the desktop and it worked fine in 16 and 256, but 24 bpp moved a section 20 pixs or so wide to the right side of the image.