Fw: Fix treeview with checkboxes creation

Marcelo Duarte wine-devel at bol.com.br
Tue Aug 19 00:38:25 CDT 2003


I think that a comment in the code would have been very good. ;)

> ----- Original Message ----- 
> From: "Dmitry Timoshkov" <dmitry at baikal.ru>
> To: "Maxime Bellengé" <maxime.bellenge at laposte.net>
> Cc: <wine-devel at winehq.com>
> Sent: Monday, August 18, 2003 11:42 PM
> Subject: Re: Fix treeview with checkboxes creation
>
>
> > "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.
> >
> > --
> > Dmitry.
> >
> >
> >
>




More information about the wine-devel mailing list