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
9a0f5ede
Commit
9a0f5ede
authored
Aug 09, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Aug 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct dialog title for Wizard 97 and correctly display header
bitmap for old-style Wizard 97.
parent
8cc77c18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
8 deletions
+49
-8
propsheet.c
dlls/comctl32/propsheet.c
+49
-8
No files found.
dlls/comctl32/propsheet.c
View file @
9a0f5ede
...
...
@@ -1630,8 +1630,11 @@ static BOOL PROPSHEET_ShowPage(HWND hwndDlg, int index, PropSheetInfo * psInfo)
PROPSHEET_CreatePage
(
hwndDlg
,
index
,
psInfo
,
ppshpage
);
}
PROPSHEET_SetTitleW
(
hwndDlg
,
psInfo
->
ppshheader
.
dwFlags
,
psInfo
->
proppage
[
index
].
pszText
);
if
((
psInfo
->
ppshheader
.
dwFlags
&
(
PSH_WIZARD97_OLD
|
PSH_WIZARD97_NEW
))
==
0
)
{
PROPSHEET_SetTitleW
(
hwndDlg
,
psInfo
->
ppshheader
.
dwFlags
,
psInfo
->
proppage
[
index
].
pszText
);
}
if
(
psInfo
->
active_page
!=
-
1
)
ShowWindow
(
psInfo
->
proppage
[
psInfo
->
active_page
].
hwndPage
,
SW_HIDE
);
...
...
@@ -3075,12 +3078,39 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
GetClientRect
(
hwndLineHeader
,
&
r
);
MapWindowPoints
(
hwndLineHeader
,
hwnd
,
(
LPPOINT
)
&
r
,
2
);
SetRect
(
&
rzone
,
0
,
0
,
r
.
right
,
r
.
top
-
1
);
hbr
=
CreateSolidBrush
(
GetPixel
(
hdcSrc
,
0
,
0
));
FillRect
(
hdc
,
&
rzone
,
hbr
);
DeleteObject
(
hbr
);
GetObjectA
(
psInfo
->
ppshheader
.
u5
.
hbmHeader
,
sizeof
(
BITMAP
),
(
LPVOID
)
&
bm
);
if
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_WIZARD97_OLD
)
{
/* Fill the unoccupied part of the header with color of the
* left-top pixel, but do it only when needed.
*/
if
(
bm
.
bmWidth
<
r
.
right
||
bm
.
bmHeight
<
r
.
bottom
)
{
hbr
=
CreateSolidBrush
(
GetPixel
(
hdcSrc
,
0
,
0
));
CopyRect
(
&
r
,
&
rzone
);
if
(
bm
.
bmWidth
<
r
.
right
)
{
r
.
left
=
bm
.
bmWidth
;
FillRect
(
hdc
,
&
r
,
hbr
);
}
if
(
bm
.
bmHeight
<
r
.
bottom
)
{
r
.
left
=
0
;
r
.
top
=
bm
.
bmHeight
;
FillRect
(
hdc
,
&
r
,
hbr
);
}
DeleteObject
(
hbr
);
}
}
else
{
hbr
=
CreateSolidBrush
(
GetSysColor
(
COLOR_WINDOW
));
FillRect
(
hdc
,
&
rzone
,
hbr
);
DeleteObject
(
hbr
);
}
clrOld
=
SetTextColor
(
hdc
,
0x00000000
);
oldBkMode
=
SetBkMode
(
hdc
,
TRANSPARENT
);
...
...
@@ -3105,9 +3135,20 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
-
1
,
&
r
,
DT_LEFT
|
DT_SINGLELINE
);
}
BitBlt
(
hdc
,
rzone
.
right
-
bm
.
bmWidth
,
(
rzone
.
bottom
-
bm
.
bmHeight
)
/
2
,
bm
.
bmWidth
,
bm
.
bmHeight
,
hdcSrc
,
0
,
0
,
SRCCOPY
);
if
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_WIZARD97_OLD
)
{
BitBlt
(
hdc
,
0
,
0
,
bm
.
bmWidth
,
min
(
bm
.
bmHeight
,
rzone
.
bottom
),
hdcSrc
,
0
,
0
,
SRCCOPY
);
}
else
{
BitBlt
(
hdc
,
rzone
.
right
-
bm
.
bmWidth
,
(
rzone
.
bottom
-
bm
.
bmHeight
)
/
2
,
bm
.
bmWidth
,
bm
.
bmHeight
,
hdcSrc
,
0
,
0
,
SRCCOPY
);
}
offsety
=
rzone
.
bottom
+
2
;
SetTextColor
(
hdc
,
clrOld
);
...
...
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