summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-26 22:37:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-26 22:38:21 +0300
commit1005a0df562affafe0b0deffde3e3b626e2f14b3 (patch)
treec005dfc62147451dcd16a46181d3a5aab5bac45d /plugins/TabSRMM
parent9da0e2174a4d557f55c17fc0f82df3f6f34f58cf (diff)
code cleaning
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp4
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp4
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp
index 403f6f86be..e1315d7dee 100644
--- a/plugins/TabSRMM/src/chat_window.cpp
+++ b/plugins/TabSRMM/src/chat_window.cpp
@@ -255,7 +255,7 @@ int CChatRoomDlg::Resizer(UTILRESIZECONTROL *urc)
Utils::showDlgControl(m_hwnd, IDC_SPLITTERY, SW_HIDE);
if (m_si->iType != GCW_SERVER) {
- Utils::showDlgControl(m_hwnd, IDC_SRMM_NICKLIST, m_bNicklistEnabled ? SW_SHOW : SW_HIDE);
+ m_nickList.Show(m_bNicklistEnabled);
Utils::showDlgControl(m_hwnd, IDC_SPLITTERX, m_bNicklistEnabled ? SW_SHOW : SW_HIDE);
m_btnNickList.Enable(true);
@@ -267,7 +267,7 @@ int CChatRoomDlg::Resizer(UTILRESIZECONTROL *urc)
}
}
else {
- Utils::showDlgControl(m_hwnd, IDC_SRMM_NICKLIST, SW_HIDE);
+ m_nickList.Hide();
Utils::showDlgControl(m_hwnd, IDC_SPLITTERX, SW_HIDE);
}
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index fedb3d4aab..05993c906a 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -386,9 +386,9 @@ void CTabBaseDlg::SetDialogToType()
Utils::enableDlgControl(m_hwnd, IDC_TIME, true);
if (m_hwndIEView || m_hwndHPP) {
- Utils::showDlgControl(m_hwnd, IDC_SRMM_LOG, SW_HIDE);
+ m_log.Hide();
m_log.Enable(false);
- Utils::showDlgControl(m_hwnd, IDC_SRMM_MESSAGE, SW_SHOW);
+ m_message.Show();
}
else ShowMultipleControls(m_hwnd, sendControls, _countof(sendControls), SW_SHOW);
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 2f16a2a7cc..0f2784c6a7 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -1065,7 +1065,7 @@ void CTabBaseDlg::SetMessageLog()
ieWindow.cy = 200;
CallService(MS_IEVIEW_WINDOW, 0, (LPARAM)&ieWindow);
m_hwndIEView = ieWindow.hwnd;
- Utils::showDlgControl(m_hwnd, IDC_SRMM_LOG, SW_HIDE);
+ m_log.Hide();
m_log.Enable(false);
}
else if (iLogMode == WANT_HPP_LOG && m_hwndHPP == nullptr) {
@@ -1078,7 +1078,7 @@ void CTabBaseDlg::SetMessageLog()
ieWindow.cy = 10;
CallService(MS_HPP_EG_WINDOW, 0, (LPARAM)&ieWindow);
m_hwndHPP = ieWindow.hwnd;
- Utils::showDlgControl(m_hwnd, IDC_SRMM_LOG, SW_HIDE);
+ m_log.Hide();
m_log.Enable(false);
}
}