Skip to content
Snippets Groups Projects
Commit 18613bb7 authored by Stephane Lussier's avatar Stephane Lussier Committed by Alexandre Julliard
Browse files

Re-enable the owner window in the EndDialog().

parent 4083d9ab
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment