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
7d947c16
Commit
7d947c16
authored
Sep 13, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsheet: Do not change idea of size when new pages are added.
parent
adc09ad5
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 @
7d947c16
...
...
@@ -402,7 +402,7 @@ static void PROPSHEET_CollectSheetInfoW(LPCPROPSHEETHEADERW lppsh,
*/
static
BOOL
PROPSHEET_CollectPageInfo
(
LPCPROPSHEETPAGEW
lppsp
,
PropSheetInfo
*
psInfo
,
int
index
)
int
index
,
BOOL
resize
)
{
const
DLGTEMPLATE
*
pTemplate
;
const
WORD
*
p
;
...
...
@@ -503,11 +503,14 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
}
/* remember the largest width and height */
if
(
width
>
psInfo
->
width
)
psInfo
->
width
=
width
;
if
(
resize
)
{
if
(
width
>
psInfo
->
width
)
psInfo
->
width
=
width
;
if
(
height
>
psInfo
->
height
)
psInfo
->
height
=
height
;
if
(
height
>
psInfo
->
height
)
psInfo
->
height
=
height
;
}
/* menu */
switch
((
WORD
)
*
p
)
...
...
@@ -2284,7 +2287,7 @@ static BOOL PROPSHEET_AddPage(HWND hwndDlg,
return
FALSE
;
psInfo
->
proppage
=
ppi
;
if
(
!
PROPSHEET_CollectPageInfo
(
ppsp
,
psInfo
,
psInfo
->
nPages
))
if
(
!
PROPSHEET_CollectPageInfo
(
ppsp
,
psInfo
,
psInfo
->
nPages
,
FALSE
))
return
FALSE
;
psInfo
->
proppage
[
psInfo
->
nPages
].
hpage
=
hpage
;
...
...
@@ -2840,7 +2843,7 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
}
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
psInfo
,
n
))
psInfo
,
n
,
TRUE
))
{
if
(
psInfo
->
usePropPage
)
DestroyPropertySheetPage
(
psInfo
->
proppage
[
n
].
hpage
);
...
...
@@ -2883,7 +2886,7 @@ INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
}
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
psInfo
,
n
))
psInfo
,
n
,
TRUE
))
{
if
(
psInfo
->
usePropPage
)
DestroyPropertySheetPage
(
psInfo
->
proppage
[
n
].
hpage
);
...
...
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