Commit f314e5e7 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Disable the owner of a modal dialog box just before creating the

dialog window.
parent 242d23e9
......@@ -360,7 +360,7 @@ static INT PROPSHEET_DoDialogBox( HWND hwnd, HWND owner)
if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return -1;
dlgInfo = (DIALOGINFO *)wndPtr->wExtra;
if (!dlgInfo->flags & DF_END) /* was EndDialog called in WM_INITDIALOG ? */
if (!(dlgInfo->flags & DF_END)) /* was EndDialog called in WM_INITDIALOG ? */
{
EnableWindow( owner, FALSE );
ShowWindow( hwnd, SW_SHOW );
......
......@@ -37,6 +37,7 @@ typedef struct
#include "poppack.h"
#define DF_END 0x0001
#define DF_OWNERENABLED 0x0002
extern BOOL DIALOG_Init(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment