summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-01 23:11:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-01 23:11:32 +0300
commita6f2b5fb358392a227e16566e4ad39832d74bb89 (patch)
tree78ded496415ffa361f9589f855c35104b95573ec /src
parentbc2b9ef55b0449b2e97e7fb0eeecc686732ca9a2 (diff)
fix for a problem with activating new tabs in tabSRMM
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/ui_utils.cpp5
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()