comctl32/treeview: Use DFCS_MONO style for item check boxes.
Keep it consistent with Windows. Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
35ed21d27a
commit
e82d96ed5e
|
@ -3034,13 +3034,11 @@ TREEVIEW_InitCheckboxes(TREEVIEW_INFO *infoPtr)
|
||||||
|
|
||||||
rc.left = width;
|
rc.left = width;
|
||||||
rc.right = rc.left + width;
|
rc.right = rc.left + width;
|
||||||
DrawFrameControl(hdc, &rc, DFC_BUTTON,
|
DrawFrameControl(hdc, &rc, DFC_BUTTON, DFCS_BUTTONCHECK | DFCS_MONO);
|
||||||
DFCS_BUTTONCHECK|DFCS_FLAT);
|
|
||||||
|
|
||||||
rc.left = width * 2;
|
rc.left = width * 2;
|
||||||
rc.right = rc.left + width;
|
rc.right = rc.left + width;
|
||||||
DrawFrameControl(hdc, &rc, DFC_BUTTON,
|
DrawFrameControl(hdc, &rc, DFC_BUTTON, DFCS_BUTTONCHECK | DFCS_MONO | DFCS_CHECKED);
|
||||||
DFCS_BUTTONCHECK|DFCS_FLAT|DFCS_CHECKED);
|
|
||||||
|
|
||||||
SelectObject(hdc, hbmOld);
|
SelectObject(hdc, hbmOld);
|
||||||
nIndex = ImageList_AddMasked(infoPtr->himlState, hbm,
|
nIndex = ImageList_AddMasked(infoPtr->himlState, hbm,
|
||||||
|
|
Loading…
Reference in New Issue