According to MSDN, it is said that CreateCompatibleBitmap should be used whenever a color bitmap is created. Moreover, with CreateBitmap, I have to know the depth of the screen whereas with CreateCompatibleBitmap I don't need to.
Dmitry (or others), do you really think this patch can't be applied as is. I will add some comments as suggested by Marcelo Duarte. Max On Tue, 2003-08-19 at 04:42, Dmitry Timoshkov wrote: > "Maxime Bellengé" <[EMAIL PROTECTED]> wrote: > > > - hdc = CreateCompatibleDC(0); > > - hbm = CreateCompatibleBitmap(hdc, 48, 16); > > > > hbm is a 1 bit per pixel bitmap > > > > + hdcScreen = CreateDCA("DISPLAY", NULL, NULL, NULL); > > + > > + hdc = CreateCompatibleDC(hdcScreen); > > + hbm = CreateCompatibleBitmap(hdcScreen, 48, 16); > > > > hbm has now a screen compliant depth > > You are right. Probably it's better to just replace CreateCompatibleBitmap() > by CreateBitmap() with the desired number of bits per pixel. In any case > send what you see more appropriate. > > -- > Dmitry. > -- Maxime Bellengé <[EMAIL PROTECTED]>