diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-26 22:37:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-26 22:38:21 +0300 |
commit | 1005a0df562affafe0b0deffde3e3b626e2f14b3 (patch) | |
tree | c005dfc62147451dcd16a46181d3a5aab5bac45d /plugins/Scriver/src | |
parent | 9da0e2174a4d557f55c17fc0f82df3f6f34f58cf (diff) |
code cleaning
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/chat_window.cpp | 6 | ||||
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 9 |
2 files changed, 6 insertions, 9 deletions
diff --git a/plugins/Scriver/src/chat_window.cpp b/plugins/Scriver/src/chat_window.cpp index 5b2fbf80ff..2eedb41373 100644 --- a/plugins/Scriver/src/chat_window.cpp +++ b/plugins/Scriver/src/chat_window.cpp @@ -166,11 +166,11 @@ void CChatRoomDlg::MessageDialogResize(int w, int h) if (m_pParent->iSplitterY < hSplitterMinBottom)
m_pParent->iSplitterY = hSplitterMinBottom;
- ShowWindow(m_splitterX.GetHwnd(), bNick ? SW_SHOW : SW_HIDE);
+ m_splitterX.Show(bNick);
if (m_si->iType != GCW_SERVER)
- ShowWindow(m_nickList.GetHwnd(), m_bNicklistEnabled ? SW_SHOW : SW_HIDE);
+ m_nickList.Show(m_bNicklistEnabled);
else
- ShowWindow(m_nickList.GetHwnd(), SW_HIDE);
+ m_nickList.Hide();
if (m_si->iType == GCW_SERVER) {
m_btnNickList.Enable(false);
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 7968f3da0c..bccea21bef 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -720,13 +720,10 @@ void CSrmmWindow::SetDialogToType() else
ShowWindow(m_hwndInfo, SW_HIDE);
- ShowWindow(m_message.GetHwnd(), SW_SHOW);
- if (m_hwndIeview != nullptr)
- ShowWindow(m_log.GetHwnd(), SW_HIDE);
- else
- ShowWindow(m_log.GetHwnd(), SW_SHOW);
+ m_message.Show();
+ m_log.Show(m_hwndIeview == nullptr);
- ShowWindow(m_splitter.GetHwnd(), SW_SHOW);
+ m_splitter.Show();
UpdateReadChars();
EnableWindow(GetDlgItem(m_hwnd, IDOK), GetRichTextLength(m_message.GetHwnd(), 1200, FALSE) ? TRUE : FALSE);
SendMessage(m_hwnd, DM_CLISTSETTINGSCHANGED, 0, 0);
|