diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_core/src/ui_utils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp index 6231170c30..89a5ba09e8 100644 --- a/src/mir_core/src/ui_utils.cpp +++ b/src/mir_core/src/ui_utils.cpp @@ -73,12 +73,13 @@ CDlgBase::~CDlgBase() void CDlgBase::Create()
{
- ShowWindow(CreateDialogParam(m_hInst, MAKEINTRESOURCE(m_idDialog), m_hwndParent, GlobalDlgProc, (LPARAM)this), SW_HIDE);
+ CreateDialogParam(m_hInst, MAKEINTRESOURCE(m_idDialog), m_hwndParent, GlobalDlgProc, (LPARAM)this);
}
void CDlgBase::Show(int nCmdShow)
{
- ShowWindow(CreateDialogParam(m_hInst, MAKEINTRESOURCE(m_idDialog), m_hwndParent, GlobalDlgProc, (LPARAM)this), nCmdShow);
+ Create();
+ ShowWindow(m_hwnd, nCmdShow);
}
int CDlgBase::DoModal()
|