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
e3b80a0d
Commit
e3b80a0d
authored
Jun 26, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Jun 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Determine if PSH_PROPSHEETPAGE is set once.
parent
f4dd14ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
propsheet.c
dlls/comctl32/propsheet.c
+6
-4
No files found.
dlls/comctl32/propsheet.c
View file @
e3b80a0d
...
...
@@ -120,6 +120,7 @@ typedef struct tagPropSheetInfo
BOOL
hasHelp
;
BOOL
hasApply
;
BOOL
hasFinish
;
BOOL
usePropPage
;
BOOL
useCallback
;
BOOL
activeValid
;
PropPageInfo
*
proppage
;
...
...
@@ -298,6 +299,7 @@ static void PROPSHEET_CollectSheetInfoCommon(PropSheetInfo * psInfo, DWORD dwFla
psInfo
->
hasApply
=
!
(
dwFlags
&
PSH_NOAPPLYNOW
);
psInfo
->
hasFinish
=
dwFlags
&
PSH_WIZARDHASFINISH
;
psInfo
->
isModeless
=
dwFlags
&
PSH_MODELESS
;
psInfo
->
usePropPage
=
dwFlags
&
PSH_PROPSHEETPAGE
;
if
(
psInfo
->
active_page
<
0
||
psInfo
->
active_page
>=
psInfo
->
nPages
)
psInfo
->
active_page
=
0
;
...
...
@@ -2829,7 +2831,7 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
for
(
n
=
i
=
0
;
i
<
lppsh
->
nPages
;
i
++
,
n
++
)
{
if
(
!
(
lppsh
->
dwFlags
&
PSH_PROPSHEETPAGE
)
)
if
(
!
psInfo
->
usePropPage
)
psInfo
->
proppage
[
n
].
hpage
=
psInfo
->
ppshheader
.
u3
.
phpage
[
i
];
else
{
...
...
@@ -2840,7 +2842,7 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
psInfo
,
n
))
{
if
(
lppsh
->
dwFlags
&
PSH_PROPSHEETPAGE
)
if
(
psInfo
->
usePropPage
)
DestroyPropertySheetPage
(
psInfo
->
proppage
[
n
].
hpage
);
n
--
;
psInfo
->
nPages
--
;
...
...
@@ -2872,7 +2874,7 @@ INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
for
(
n
=
i
=
0
;
i
<
lppsh
->
nPages
;
i
++
,
n
++
)
{
if
(
!
(
lppsh
->
dwFlags
&
PSH_PROPSHEETPAGE
)
)
if
(
!
psInfo
->
usePropPage
)
psInfo
->
proppage
[
n
].
hpage
=
psInfo
->
ppshheader
.
u3
.
phpage
[
i
];
else
{
...
...
@@ -2883,7 +2885,7 @@ INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
if
(
!
PROPSHEET_CollectPageInfo
((
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
n
].
hpage
,
psInfo
,
n
))
{
if
(
lppsh
->
dwFlags
&
PSH_PROPSHEETPAGE
)
if
(
psInfo
->
usePropPage
)
DestroyPropertySheetPage
(
psInfo
->
proppage
[
n
].
hpage
);
n
--
;
psInfo
->
nPages
--
;
...
...
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