From a6f2b5fb358392a227e16566e4ad39832d74bb89 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Mar 2017 23:11:32 +0300 Subject: fix for a problem with activating new tabs in tabSRMM --- src/mir_core/src/ui_utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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() -- cgit v1.2.3