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
3336f485
Commit
3336f485
authored
Oct 13, 1999
by
Abey George
Committed by
Alexandre Julliard
Oct 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed EndDialog to behave like as in Windows.
Call SetWindowPos instead of ShowWindow in EndDialog.
parent
983f90a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
dialog.c
windows/dialog.c
+14
-15
No files found.
windows/dialog.c
View file @
3336f485
...
...
@@ -1072,6 +1072,7 @@ BOOL WINAPI EndDialog( HWND hwnd, INT retval )
{
WND
*
wndPtr
=
WIN_FindWndPtr
(
hwnd
);
DIALOGINFO
*
dlgInfo
=
(
DIALOGINFO
*
)
wndPtr
->
wExtra
;
HWND
hOwner
=
0
;
TRACE
(
"%04x %d
\n
"
,
hwnd
,
retval
);
...
...
@@ -1081,28 +1082,26 @@ BOOL WINAPI EndDialog( HWND hwnd, INT retval )
dlgInfo
->
flags
|=
DF_END
;
}
/* Windows sets the focus to the dialog itself first in EndDialog */
if
(
wndPtr
->
owner
)
hOwner
=
WIN_GetTopParent
(
wndPtr
->
owner
->
hwndSelf
);
/* Enable the owner first */
if
(
hOwner
&&
!
IsWindowEnabled
(
hOwner
))
EnableWindow
(
hOwner
,
TRUE
);
/* Windows sets the focus to the dialog itself in EndDialog */
if
(
IsChild
(
hwnd
,
GetFocus
()))
SetFocus
(
wndPtr
->
hwndSelf
);
/* Paint Shop Pro 4.14 calls EndDialog for a CreateDialog* dialog,
* which isn't "normal". Only DialogBox* dialogs may be EndDialog()ed.
* Just hide the window
* and re-enable the owner as windows does it...
*/
ShowWindow
(
hwnd
,
SW_HIDE
);
/* Don't have to send a ShowWindow(SW_HIDE), just do
SetWindowPos with SWP_HIDEWINDOW as done in Windows */
if
(
wndPtr
->
owner
)
{
HWND
hOwner
;
/* Owner must be a top-level window */
hOwner
=
WIN_GetTopParent
(
wndPtr
->
owner
->
hwndSelf
);
EnableWindow
(
hOwner
,
TRUE
);
}
SetWindowPos
(
hwnd
,
(
HWND
)
0
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_HIDEWINDOW
);
WIN_ReleaseWndPtr
(
wndPtr
);
return
TRUE
;
}
...
...
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