Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6c161f33
Commit
6c161f33
authored
Sep 26, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add helper for getting icon from HPROPSHEETPAGE.
parent
f6fcb167
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
+21
-7
propsheet.c
dlls/comctl32/propsheet.c
+21
-7
No files found.
dlls/comctl32/propsheet.c
View file @
6c161f33
...
...
@@ -396,6 +396,26 @@ static WCHAR* HPSP_get_title(HPROPSHEETPAGE hpsp, const WCHAR *template_title)
return
heap_strdupW
(
pTitle
);
}
static
HICON
HPSP_get_icon
(
HPROPSHEETPAGE
hpsp
)
{
HICON
ret
;
if
(
hpsp
->
psp
.
dwFlags
&
PSP_USEICONID
)
{
int
cx
=
GetSystemMetrics
(
SM_CXSMICON
);
int
cy
=
GetSystemMetrics
(
SM_CYSMICON
);
ret
=
LoadImageW
(
hpsp
->
psp
.
hInstance
,
hpsp
->
psp
.
u2
.
pszIcon
,
IMAGE_ICON
,
cx
,
cy
,
LR_DEFAULTCOLOR
);
}
else
{
ret
=
hpsp
->
psp
.
u2
.
hIcon
;
}
return
ret
;
}
#define add_flag(a) if (dwFlags & a) {strcat(string, #a );strcat(string," ");}
/******************************************************************************
* PROPSHEET_UnImplementedFlags
...
...
@@ -734,13 +754,7 @@ static BOOL PROPSHEET_CollectPageInfo(HPROPSHEETPAGE hpsp,
int
icon_cx
=
GetSystemMetrics
(
SM_CXSMICON
);
int
icon_cy
=
GetSystemMetrics
(
SM_CYSMICON
);
if
(
dwFlags
&
PSP_USEICONID
)
hIcon
=
LoadImageW
(
hpsp
->
psp
.
hInstance
,
hpsp
->
psp
.
u2
.
pszIcon
,
IMAGE_ICON
,
icon_cx
,
icon_cy
,
LR_DEFAULTCOLOR
);
else
hIcon
=
hpsp
->
psp
.
u2
.
hIcon
;
if
(
hIcon
)
if
((
hIcon
=
HPSP_get_icon
(
hpsp
)))
{
if
(
psInfo
->
hImageList
==
0
)
psInfo
->
hImageList
=
ImageList_Create
(
icon_cx
,
icon_cy
,
ILC_COLOR
,
1
,
1
);
...
...
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