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,
...
@@ -402,7 +402,7 @@ static void PROPSHEET_CollectSheetInfoW(LPCPROPSHEETHEADERW lppsh,
*/
*/
static
BOOL
PROPSHEET_CollectPageInfo
(
LPCPROPSHEETPAGEW
lppsp
,
static
BOOL
PROPSHEET_CollectPageInfo
(
LPCPROPSHEETPAGEW
lppsp
,
PropSheetInfo
*
psInfo
,
PropSheetInfo
*
psInfo
,
int
index
)
int
index
,
BOOL
resize
)
{
{
const
DLGTEMPLATE
*
pTemplate
;
const
DLGTEMPLATE
*
pTemplate
;
const
WORD
*
p
;
const
WORD
*
p
;
...
@@ -503,11 +503,14 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
...
@@ -503,11 +503,14 @@ static BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
}
}
/* remember the largest width and height */
/* remember the largest width and height */
if
(
width
>
psInfo
->
width
)
if
(
resize
)
psInfo
->
width
=
width
;
{
if
(
width
>
psInfo
->
width
)
psInfo
->
width
=
width
;
if
(
height
>
psInfo
->
height
)
if
(
height
>
psInfo
->
height
)
psInfo
->
height
=
height
;
psInfo
->
height
=
height
;
}
/* menu */
/* menu */
switch
((
WORD
)
*
p
)
switch
((
WORD
)
*
p
)
...
@@ -2284,7 +2287,7 @@ static BOOL PROPSHEET_AddPage(HWND hwndDlg,
...
@@ -2284,7 +2287,7 @@ static BOOL PROPSHEET_AddPage(HWND hwndDlg,
return
FALSE
;
return
FALSE
;
psInfo
->
proppage
=
ppi
;
psInfo
->
proppage
=
ppi
;
if
(
!
PROPSHEET_CollectPageInfo
(
ppsp
,
psInfo
,
psInfo
->
nPages
))
if
(
!
PROPSHEET_CollectPageInfo
(
ppsp
,
psInfo
,
psInfo
->
nPages
,
FALSE
))
return
FALSE
;
return
FALSE
;
psInfo
->
proppage
[
psInfo
->
nPages
].
hpage
=
hpage
;
psInfo
->
proppage
[
psInfo
->
nPages
].
hpage
=
hpage
;
...
@@ -2840,7 +2843,7 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
...
@@ -2840,7 +2843,7 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
}
}
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
psInfo
,
n
))
psInfo
,
n
,
TRUE
))
{
{
if
(
psInfo
->
usePropPage
)
if
(
psInfo
->
usePropPage
)
DestroyPropertySheetPage
(
psInfo
->
proppage
[
n
].
hpage
);
DestroyPropertySheetPage
(
psInfo
->
proppage
[
n
].
hpage
);
...
@@ -2883,7 +2886,7 @@ INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
...
@@ -2883,7 +2886,7 @@ INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
}
}
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
psInfo
,
n
))
psInfo
,
n
,
TRUE
))
{
{
if
(
psInfo
->
usePropPage
)
if
(
psInfo
->
usePropPage
)
DestroyPropertySheetPage
(
psInfo
->
proppage
[
n
].
hpage
);
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