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
6bc8ecaf
Commit
6bc8ecaf
authored
Apr 27, 2017
by
Huw Davies
Committed by
Alexandre Julliard
Apr 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Use the system metrics to retrieve the treeview icon sizes.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8cb12084
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
treeview.c
programs/regedit/treeview.c
+3
-4
No files found.
programs/regedit/treeview.c
View file @
6bc8ecaf
...
...
@@ -43,8 +43,6 @@ int Image_Open;
int
Image_Closed
;
int
Image_Root
;
#define CX_ICON 16
#define CY_ICON 16
#define NUM_ICONS 3
static
BOOL
UpdateExpandingTree
(
HWND
hwndTV
,
HTREEITEM
hItem
,
int
state
);
...
...
@@ -599,10 +597,11 @@ static BOOL InitTreeViewImageLists(HWND hwndTV)
{
HIMAGELIST
himl
;
/* handle to image list */
HICON
hico
;
/* handle to icon */
INT
cx
=
GetSystemMetrics
(
SM_CXSMICON
);
INT
cy
=
GetSystemMetrics
(
SM_CYSMICON
);
/* Create the image list. */
if
((
himl
=
ImageList_Create
(
CX_ICON
,
CY_ICON
,
ILC_MASK
,
0
,
NUM_ICONS
))
==
NULL
)
if
((
himl
=
ImageList_Create
(
cx
,
cy
,
ILC_MASK
,
0
,
NUM_ICONS
))
==
NULL
)
return
FALSE
;
/* Add the open file, closed file, and document bitmaps. */
...
...
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