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