Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cb1c112d
Commit
cb1c112d
authored
Aug 23, 2003
by
Maxime Bellengé
Committed by
Alexandre Julliard
Aug 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the creation of treeview with checkboxes.
parent
6af30d69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
treeview.c
dlls/comctl32/treeview.c
+11
-5
No files found.
dlls/comctl32/treeview.c
View file @
cb1c112d
...
...
@@ -4825,14 +4825,18 @@ TREEVIEW_Create(HWND hwnd)
{
RECT
rc
;
HBITMAP
hbm
,
hbmOld
;
HDC
hdc
;
HDC
hdc
,
hdcScreen
;
int
nIndex
;
infoPtr
->
himlState
=
ImageList_Create
(
16
,
16
,
ILC_COLOR
|
ILC_MASK
,
3
,
0
);
hdc
=
CreateCompatibleDC
(
0
);
hbm
=
CreateCompatibleBitmap
(
hdc
,
48
,
16
);
hdcScreen
=
CreateDCA
(
"DISPLAY"
,
NULL
,
NULL
,
NULL
);
/* Create a coloured bitmap compatible with the screen depth
because checkboxes are not black&white */
hdc
=
CreateCompatibleDC
(
hdcScreen
);
hbm
=
CreateCompatibleBitmap
(
hdcScreen
,
48
,
16
);
hbmOld
=
SelectObject
(
hdc
,
hbm
);
rc
.
left
=
0
;
rc
.
top
=
0
;
...
...
@@ -4848,12 +4852,14 @@ TREEVIEW_Create(HWND hwnd)
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
);
TRACE
(
"ch
e
ckbox index %d
\n
"
,
nIndex
);
DeleteObject
(
hbm
);
DeleteDC
(
hdc
);
DeleteDC
(
hdcScreen
);
infoPtr
->
stateImageWidth
=
16
;
infoPtr
->
stateImageHeight
=
16
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment