mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 03:49:02 +00:00
Re-enable the owner window in the EndDialog().
This commit is contained in:
parent
4083d9ab2f
commit
18613bb7c7
@ -1075,11 +1075,21 @@ BOOL WINAPI EndDialog( HWND hwnd, INT retval )
|
||||
|
||||
/* 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 as windows does it...
|
||||
* Just hide the window
|
||||
* and re-enable the owner as windows does it...
|
||||
*/
|
||||
ShowWindow(hwnd, SW_HIDE);
|
||||
|
||||
if(wndPtr->owner)
|
||||
{
|
||||
HWND hOwner;
|
||||
/* Owner must be a top-level window */
|
||||
hOwner = WIN_GetTopParent( wndPtr->owner->hwndSelf );
|
||||
EnableWindow( hOwner, TRUE );
|
||||
}
|
||||
|
||||
WIN_ReleaseWndPtr(wndPtr);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user