Fix treeview with checkboxes creation
maxime.bellenge at laposte.net
Tue Aug 19 06:50:43 CDT 2003
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.
On Tue, 2003-08-19 at 04:42, Dmitry Timoshkov wrote:
> "Maxime Bellengé" <maxime.bellenge at laposte.net> 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.
Maxime Bellengé <maxime.bellenge at laposte.net>
More information about the wine-devel