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
2893294f
Commit
2893294f
authored
Jul 08, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Jul 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Disable owner of modal property sheets before creating the dialog.
parent
57b25bcf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
propsheet.c
dlls/comctl32/propsheet.c
+6
-2
propsheet.c
dlls/comctl32/tests/propsheet.c
+1
-1
No files found.
dlls/comctl32/propsheet.c
View file @
2893294f
...
...
@@ -2784,17 +2784,21 @@ static INT do_loop(const PropSheetInfo *psInfo)
static
INT_PTR
PROPSHEET_PropertySheet
(
PropSheetInfo
*
psInfo
,
BOOL
unicode
)
{
INT_PTR
bRet
=
0
;
HWND
parent
=
NULL
;
if
(
psInfo
->
active_page
>=
psInfo
->
nPages
)
psInfo
->
active_page
=
0
;
TRACE
(
"startpage: %d of %d pages
\n
"
,
psInfo
->
active_page
,
psInfo
->
nPages
);
psInfo
->
unicode
=
unicode
;
psInfo
->
ended
=
FALSE
;
bRet
=
PROPSHEET_CreateDialog
(
psInfo
);
if
(
!
psInfo
->
isModeless
)
{
HWND
parent
=
GetParent
(
psInfo
->
hwnd
)
;
parent
=
psInfo
->
ppshheader
.
hwndParent
;
if
(
parent
)
EnableWindow
(
parent
,
FALSE
);
}
bRet
=
PROPSHEET_CreateDialog
(
psInfo
);
if
(
!
psInfo
->
isModeless
)
{
bRet
=
do_loop
(
psInfo
);
if
(
parent
)
EnableWindow
(
parent
,
TRUE
);
}
...
...
dlls/comctl32/tests/propsheet.c
View file @
2893294f
...
...
@@ -140,7 +140,7 @@ static int CALLBACK disableowner_callback(HWND hwnd, UINT msg, LPARAM lparam)
{
case
PSCB_INITIALIZED
:
{
todo_wine
ok
(
IsWindowEnabled
(
parent
)
==
0
,
"parent window should be disabled
\n
"
);
ok
(
IsWindowEnabled
(
parent
)
==
0
,
"parent window should be disabled
\n
"
);
PostQuitMessage
(
0
);
return
FALSE
;
}
...
...
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