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
9f42a50a
Commit
9f42a50a
authored
Sep 26, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add helper for setting header title in HPROPSHEETPAGE.
parent
e270a104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
propsheet.c
dlls/comctl32/propsheet.c
+11
-8
No files found.
dlls/comctl32/propsheet.c
View file @
9f42a50a
...
...
@@ -439,6 +439,16 @@ static HWND HPSP_create_page(HPROPSHEETPAGE hpsp, DLGTEMPLATE *template, HWND pa
return
hwnd
;
}
static
void
HPSP_set_header_title
(
HPROPSHEETPAGE
hpsp
,
const
WCHAR
*
title
)
{
if
(
!
IS_INTRESOURCE
(
hpsp
->
psp
.
pszHeaderTitle
))
Free
((
void
*
)
hpsp
->
psp
.
pszHeaderTitle
);
hpsp
->
psp
.
pszHeaderTitle
=
heap_strdupW
(
title
);
hpsp
->
psp
.
dwFlags
|=
PSP_USEHEADERTITLE
;
}
#define add_flag(a) if (dwFlags & a) {strcat(string, #a );strcat(string," ");}
/******************************************************************************
* PROPSHEET_UnImplementedFlags
...
...
@@ -2495,20 +2505,13 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
static
void
PROPSHEET_SetHeaderTitleW
(
HWND
hwndDlg
,
UINT
page_index
,
const
WCHAR
*
title
)
{
PropSheetInfo
*
psInfo
=
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
PROPSHEETPAGEW
*
page
;
TRACE
(
"(%p, %u, %s)
\n
"
,
hwndDlg
,
page_index
,
debugstr_w
(
title
));
if
(
page_index
>=
psInfo
->
nPages
)
return
;
page
=
&
psInfo
->
proppage
[
page_index
].
hpage
->
psp
;
if
(
!
IS_INTRESOURCE
(
page
->
pszHeaderTitle
))
Free
((
void
*
)
page
->
pszHeaderTitle
);
page
->
pszHeaderTitle
=
heap_strdupW
(
title
);
page
->
dwFlags
|=
PSP_USEHEADERTITLE
;
HPSP_set_header_title
(
psInfo
->
proppage
[
page_index
].
hpage
,
title
);
}
/******************************************************************************
...
...
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