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
edbea606
Commit
edbea606
authored
Jan 30, 2009
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix propsheet size calculation.
parent
95d82484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
propsheet.c
dlls/comctl32/propsheet.c
+9
-6
No files found.
dlls/comctl32/propsheet.c
View file @
edbea606
...
...
@@ -740,7 +740,7 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
HWND
hwndTabCtrl
=
GetDlgItem
(
hwndDlg
,
IDC_TABCONTROL
);
HWND
hwndButton
=
GetDlgItem
(
hwndDlg
,
IDOK
);
RECT
rc
,
tabRect
;
int
tabOffsetX
,
tabOffsetY
,
buttonHeight
;
int
buttonHeight
;
PADDING_INFO
padding
=
PROPSHEET_GetPaddingInfo
(
hwndDlg
);
RECT
units
;
...
...
@@ -784,9 +784,6 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
SendMessageW
(
hwndTabCtrl
,
TCM_ADJUSTRECT
,
TRUE
,
(
LPARAM
)
&
rc
);
tabOffsetX
=
-
(
rc
.
left
);
tabOffsetY
=
-
(
rc
.
top
);
rc
.
right
-=
rc
.
left
;
rc
.
bottom
-=
rc
.
top
;
TRACE
(
"setting tab %p, rc (0,0)-(%d,%d)
\n
"
,
...
...
@@ -798,8 +795,14 @@ static BOOL PROPSHEET_AdjustSize(HWND hwndDlg, PropSheetInfo* psInfo)
TRACE
(
"tab client rc %s
\n
"
,
wine_dbgstr_rect
(
&
rc
));
rc
.
right
+=
((
padding
.
x
*
2
)
+
tabOffsetX
);
rc
.
bottom
+=
(
buttonHeight
+
(
3
*
padding
.
y
)
+
tabOffsetY
);
rc
.
right
+=
(
padding
.
x
*
2
);
rc
.
bottom
+=
buttonHeight
+
(
3
*
padding
.
y
);
if
(
!
psInfo
->
isModeless
)
AdjustWindowRect
(
&
rc
,
GetWindowLongW
(
hwndDlg
,
GWL_STYLE
),
FALSE
);
rc
.
right
-=
rc
.
left
;
rc
.
bottom
-=
rc
.
top
;
/*
* Resize the property sheet.
...
...
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