Fix treeview with checkboxes creation

Dmitry Timoshkov dmitry at baikal.ru
Sat Aug 16 22:40:17 CDT 2003


"Maxime Bellengé" <maxime.bellenge at laposte.net> wrote:

> Changelog:
> * Fix the creation of treeview with checkboxes. Now they display fine.

The only real change in this patch is the following snippet. Could you
retest and send only that chunk alone?

@@ -4848,12 +4850,14 @@
  DrawFrameControl(hdc, &rc, DFC_BUTTON,
                    DFCS_BUTTONCHECK|DFCS_FLAT|DFCS_CHECKED);

+ SelectObject(hdc, hbmOld);
  nIndex = ImageList_AddMasked(infoPtr->himlState, hbm,
                                GetSysColor(COLOR_WINDOW));
  TRACE("chckbox index %d\n", nIndex);
- SelectObject(hdc, hbmOld);

--
Dmitry.





More information about the wine-devel mailing list