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
fd6c1d59
Commit
fd6c1d59
authored
Aug 31, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use HPROPSHEETPAGE directly in PROPSHEET_GetPageRect.
parent
aefd67ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
propsheet.c
dlls/comctl32/propsheet.c
+4
-5
No files found.
dlls/comctl32/propsheet.c
View file @
fd6c1d59
...
...
@@ -232,7 +232,7 @@ static VOID PROPSHEET_UnImplementedFlags(DWORD dwFlags)
* Retrieve rect from tab control and map into the dialog for SetWindowPos
*/
static
void
PROPSHEET_GetPageRect
(
const
PropSheetInfo
*
psInfo
,
HWND
hwndDlg
,
RECT
*
rc
,
LPCPROPSHEETPAGEW
ppshpage
)
RECT
*
rc
,
HPROPSHEETPAGE
hpsp
)
{
if
(
psInfo
->
ppshheader
.
dwFlags
&
INTRNL_ANY_WIZARD
)
{
HWND
hwndChild
;
...
...
@@ -240,7 +240,7 @@ static void PROPSHEET_GetPageRect(const PropSheetInfo * psInfo, HWND hwndDlg,
if
(((
psInfo
->
ppshheader
.
dwFlags
&
(
PSH_WIZARD97_NEW
|
PSH_WIZARD97_OLD
))
&&
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_HEADER
)
&&
!
(
ppshpage
->
dwFlags
&
PSP_HIDEHEADER
))
||
!
(
hpsp
->
psp
.
dwFlags
&
PSP_HIDEHEADER
))
||
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_WIZARD
))
{
rc
->
left
=
rc
->
top
=
WIZARD_PADDING
;
...
...
@@ -255,7 +255,7 @@ static void PROPSHEET_GetPageRect(const PropSheetInfo * psInfo, HWND hwndDlg,
if
((
psInfo
->
ppshheader
.
dwFlags
&
(
PSH_WIZARD97_NEW
|
PSH_WIZARD97_OLD
))
&&
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_HEADER
)
&&
!
(
ppshpage
->
dwFlags
&
PSP_HIDEHEADER
))
!
(
hpsp
->
psp
.
dwFlags
&
PSP_HIDEHEADER
))
{
hwndChild
=
GetDlgItem
(
hwndDlg
,
IDC_SUNKEN_LINEHEADER
);
GetClientRect
(
hwndChild
,
&
r
);
...
...
@@ -1996,7 +1996,6 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
int
result
;
PSHNOTIFY
psn
;
RECT
rc
;
LPCPROPSHEETPAGEW
ppshpage
=
(
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
index
].
hpage
;
if
(
hwndTabControl
)
SendMessageW
(
hwndTabControl
,
TCM_SETCURSEL
,
index
,
0
);
...
...
@@ -2029,7 +2028,7 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
* wizards).
* NOTE: The resizing happens every time the page is selected and
* not only when it's created (some applications depend on it). */
PROPSHEET_GetPageRect
(
psInfo
,
hwndDlg
,
&
rc
,
p
ps
hpage
);
PROPSHEET_GetPageRect
(
psInfo
,
hwndDlg
,
&
rc
,
p
sInfo
->
proppage
[
index
].
hpage
);
TRACE
(
"setting page %p, rc (%s) w=%ld, h=%ld
\n
"
,
psInfo
->
proppage
[
index
].
hwndPage
,
wine_dbgstr_rect
(
&
rc
),
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
);
...
...
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