Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if a window is top most
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00173267
Message ID:
00174785
Views:
55
>George,
>
>I've got a book here Supercharged Bitmapped Graphics, by Steve Rimmer, ISBN 0-8306-3788-5 that has about 50 pages of text/code covering Windows image formats. All the rest of them I have go back to the days when we got to twiddle bits ourselves in EGA/VGA memory *s* I assume you've checked some of the sample code on MSDN?
>
Hi David,

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.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform