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:
00174892
Views:
62
>Hi George,
>
>>The odd thing is that the left 20 pixels (frame plus scroll bar width) are moved to the right side of the image when trying to do 24 bit color. Really odd. I think it's something either with CreateDIBSection(), BitBlt() or GetDIBits(), but what I have no idea.
>
>Strange, I haven't seen this before. A similar behaviour occurs if you try to display a file where the width is not a multiple of 8. Every line is inserted by a number of pixels.
>
Christof
Hi Christof,

I sent David a message which may not have gotten through. I don't know what I did, but when I set the biClrUsed of the BITINFOHEADER structure back to zero, suddenly both colors and the shifting problem went away. I did change some other things, however, so I don't know exactly what did what. Apparently, I finally got "all my ducks in a row".

I sent David a copy of an application call Obj2Bmp that took an object reference and turned it into a bitmap file, but only for 16 bit color. Now I can update that and maybe I'll post it on the UT. The Obj2Bmp app was, as I said earlier, designed for documenting purposes, but since this uses a window handle rather than an object reference, if I can incorporate that as well, it can be something that can be used at runtime.

Thanks for the feedback.
George

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

Click here to load this message in the networking platform