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
f6fcb167
Commit
f6fcb167
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 title from HPROPSHEETPAGE.
parent
91baf79a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
18 deletions
+21
-18
propsheet.c
dlls/comctl32/propsheet.c
+21
-18
No files found.
dlls/comctl32/propsheet.c
View file @
f6fcb167
...
...
@@ -376,6 +376,26 @@ static const DLGTEMPLATE* HPSP_load_template(HPROPSHEETPAGE hpsp, DWORD *size)
return
LockResource
(
template
);
}
static
WCHAR
*
HPSP_get_title
(
HPROPSHEETPAGE
hpsp
,
const
WCHAR
*
template_title
)
{
const
WCHAR
*
pTitle
;
WCHAR
szTitle
[
256
];
if
(
IS_INTRESOURCE
(
hpsp
->
psp
.
pszTitle
))
{
if
(
LoadStringW
(
hpsp
->
psp
.
hInstance
,
(
DWORD_PTR
)
hpsp
->
psp
.
pszTitle
,
szTitle
,
ARRAY_SIZE
(
szTitle
)))
pTitle
=
szTitle
;
else
if
(
*
template_title
)
pTitle
=
template_title
;
else
pTitle
=
L"(null)"
;
}
else
pTitle
=
hpsp
->
psp
.
pszTitle
;
return
heap_strdupW
(
pTitle
);
}
#define add_flag(a) if (dwFlags & a) {strcat(string, #a );strcat(string," ");}
/******************************************************************************
* PROPSHEET_UnImplementedFlags
...
...
@@ -703,24 +723,7 @@ static BOOL PROPSHEET_CollectPageInfo(HPROPSHEETPAGE hpsp,
TRACE
(
"Tab %d %s
\n
"
,
index
,
debugstr_w
(
p
));
if
(
dwFlags
&
PSP_USETITLE
)
{
WCHAR
szTitle
[
256
];
const
WCHAR
*
pTitle
;
if
(
IS_INTRESOURCE
(
hpsp
->
psp
.
pszTitle
))
{
if
(
LoadStringW
(
hpsp
->
psp
.
hInstance
,
(
DWORD_PTR
)
hpsp
->
psp
.
pszTitle
,
szTitle
,
ARRAY_SIZE
(
szTitle
)))
pTitle
=
szTitle
;
else
if
(
*
p
)
pTitle
=
p
;
else
pTitle
=
L"(null)"
;
}
else
pTitle
=
hpsp
->
psp
.
pszTitle
;
psInfo
->
proppage
[
index
].
pszText
=
heap_strdupW
(
pTitle
);
}
psInfo
->
proppage
[
index
].
pszText
=
HPSP_get_title
(
hpsp
,
p
);
/*
* Build the image list for icons
...
...
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