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
bea05558
Commit
bea05558
authored
Aug 09, 2004
by
Eric Kohl
Committed by
Alexandre Julliard
Aug 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move watermark and header bitmap loading code from
PROPSHEET_CreatePage into its own function PROPSHEET_LoadWizardBitmaps and call this function from property sheet's dialog procedure.
parent
9cd9cfd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
18 deletions
+40
-18
propsheet.c
dlls/comctl32/propsheet.c
+40
-18
No files found.
dlls/comctl32/propsheet.c
View file @
bea05558
...
@@ -1529,29 +1529,19 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
...
@@ -1529,29 +1529,19 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
(
DWORD
)
hwndPage
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
(
DWORD
)
hwndPage
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
,
pageWidth
,
pageHeight
,
padding
.
x
,
padding
.
y
);
pageWidth
,
pageHeight
,
padding
.
x
,
padding
.
y
);
/* If there is a watermark, offset the dialog items */
if
(
psInfo
->
ppshheader
.
dwFlags
&
(
PSH_WIZARD97_NEW
|
PSH_WIZARD97_OLD
)
&&
if
(
(
psInfo
->
ppshheader
.
dwFlags
&
(
PSH_WIZARD97_NEW
|
PSH_WIZARD97_OLD
))
&&
psInfo
->
ppshheader
.
dwFlags
&
PSH_HEADER
)
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_WATERMARK
)
&&
((
index
==
0
)
||
(
index
==
psInfo
->
nPages
-
1
))
)
{
{
/* if PSH_USEHBMWATERMARK is not set, load the resource from pszbmWatermark
if
((
ppshpage
->
dwFlags
&
PSP_USEHEADERTITLE
)
&&
and put the HBITMAP in hbmWatermark. Thus all the rest of the code always
(
HIWORD
(
ppshpage
->
pszHeaderTitle
)
==
0
))
considers hbmWatermark as valid. */
if
(
!
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_USEHBMWATERMARK
))
{
{
((
PropSheetInfo
*
)
psInfo
)
->
ppshheader
.
u4
.
hbmWatermark
=
/* FIXME: load title string into ppshpage->pszHeaderTitle */
CreateMappedBitmap
(
ppshpage
->
hInstance
,
(
INT
)
psInfo
->
ppshheader
.
u4
.
pszbmWatermark
,
0
,
NULL
,
0
);
}
}
}
if
(
psInfo
->
ppshheader
.
dwFlags
&
(
PSH_WIZARD97_NEW
|
PSH_WIZARD97_OLD
)
&&
if
((
ppshpage
->
dwFlags
&
PSP_USEHEADERSUBTITLE
)
&&
psInfo
->
ppshheader
.
dwFlags
&
PSH_HEADER
)
(
HIWORD
(
ppshpage
->
pszHeaderSubTitle
)
==
0
))
{
/* Same behavior as for watermarks */
if
(
!
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_USEHBMHEADER
))
{
{
((
PropSheetInfo
*
)
psInfo
)
->
ppshheader
.
u5
.
hbmHeader
=
/* FIXME: load title string into ppshpage->pszHeaderSubTitle */
CreateMappedBitmap
(
ppshpage
->
hInstance
,
(
INT
)
psInfo
->
ppshheader
.
u5
.
pszbmHeader
,
0
,
NULL
,
0
);
}
}
hwndChild
=
GetDlgItem
(
hwndParent
,
IDC_SUNKEN_LINEHEADER
);
hwndChild
=
GetDlgItem
(
hwndParent
,
IDC_SUNKEN_LINEHEADER
);
...
@@ -1586,6 +1576,36 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
...
@@ -1586,6 +1576,36 @@ static BOOL PROPSHEET_CreatePage(HWND hwndParent,
}
}
/******************************************************************************
/******************************************************************************
* PROPSHEET_LoadWizardBitmaps
*
* Loads the watermark and header bitmaps for a wizard.
*/
static
VOID
PROPSHEET_LoadWizardBitmaps
(
PropSheetInfo
*
psInfo
)
{
if
(
psInfo
->
ppshheader
.
dwFlags
&
(
PSH_WIZARD97_NEW
|
PSH_WIZARD97_OLD
))
{
/* if PSH_USEHBMWATERMARK is not set, load the resource from pszbmWatermark
and put the HBITMAP in hbmWatermark. Thus all the rest of the code always
considers hbmWatermark as valid. */
if
((
psInfo
->
ppshheader
.
dwFlags
&
PSH_WATERMARK
)
&&
!
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_USEHBMWATERMARK
))
{
((
PropSheetInfo
*
)
psInfo
)
->
ppshheader
.
u4
.
hbmWatermark
=
CreateMappedBitmap
(
psInfo
->
ppshheader
.
hInstance
,
(
INT
)
psInfo
->
ppshheader
.
u4
.
pszbmWatermark
,
0
,
NULL
,
0
);
}
/* Same behavior as for watermarks */
if
((
psInfo
->
ppshheader
.
dwFlags
&
PSH_HEADER
)
&&
!
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_USEHBMHEADER
))
{
((
PropSheetInfo
*
)
psInfo
)
->
ppshheader
.
u5
.
hbmHeader
=
CreateMappedBitmap
(
psInfo
->
ppshheader
.
hInstance
,
(
INT
)
psInfo
->
ppshheader
.
u5
.
pszbmHeader
,
0
,
NULL
,
0
);
}
}
}
/******************************************************************************
* PROPSHEET_ShowPage
* PROPSHEET_ShowPage
*
*
* Displays or creates the specified page.
* Displays or creates the specified page.
...
@@ -3210,6 +3230,8 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -3210,6 +3230,8 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
PROPSHEET_CreateTabControl
(
hwnd
,
psInfo
);
PROPSHEET_CreateTabControl
(
hwnd
,
psInfo
);
PROPSHEET_LoadWizardBitmaps
(
psInfo
);
if
(
psInfo
->
ppshheader
.
dwFlags
&
INTRNL_ANY_WIZARD
)
if
(
psInfo
->
ppshheader
.
dwFlags
&
INTRNL_ANY_WIZARD
)
{
{
ShowWindow
(
hwndTabCtrl
,
SW_HIDE
);
ShowWindow
(
hwndTabCtrl
,
SW_HIDE
);
...
...
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