mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 12:27:58 +08:00
include WS_EX_DIALOGBOX before create main window for dialog box
This commit is contained in:
+4
-4
@@ -183,9 +183,12 @@ int GUIAPI DialogBoxIndirectParamEx (PDLGTEMPLATE pDlgTemplate,
|
|||||||
int retCode = IDCANCEL;
|
int retCode = IDCANCEL;
|
||||||
MSG Msg;
|
MSG Msg;
|
||||||
|
|
||||||
if(hOwner && hOwner != HWND_INVALID && hOwner != HWND_DESKTOP)
|
if (hOwner && hOwner != HWND_INVALID && hOwner != HWND_DESKTOP)
|
||||||
hOwner = GetMainWindowHandle(hOwner);
|
hOwner = GetMainWindowHandle(hOwner);
|
||||||
|
|
||||||
|
/* Since 5.0.0: use internal extended style for dialgbox */
|
||||||
|
pDlgTemplate->dwExStyle |= WS_EX_DIALOGBOX;
|
||||||
|
|
||||||
hDlg = CreateMainWindowIndirectParamEx(pDlgTemplate,
|
hDlg = CreateMainWindowIndirectParamEx(pDlgTemplate,
|
||||||
hOwner, DlgProc, lParam,
|
hOwner, DlgProc, lParam,
|
||||||
werdr_name, we_attrs,
|
werdr_name, we_attrs,
|
||||||
@@ -194,9 +197,6 @@ int GUIAPI DialogBoxIndirectParamEx (PDLGTEMPLATE pDlgTemplate,
|
|||||||
if (hDlg == HWND_INVALID)
|
if (hDlg == HWND_INVALID)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Since 5.0.0: use internal extended style for dialgbox */
|
|
||||||
IncludeWindowExStyle (hDlg, WS_EX_DIALOGBOX);
|
|
||||||
|
|
||||||
//MiniGUI maybe change dialog owner in CreateMainWindow, so we
|
//MiniGUI maybe change dialog owner in CreateMainWindow, so we
|
||||||
//should update its owner by GetHosting.
|
//should update its owner by GetHosting.
|
||||||
hOwner = GetHosting (hDlg);
|
hOwner = GetHosting (hDlg);
|
||||||
|
|||||||
Reference in New Issue
Block a user