summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/chat_window.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-04-13 14:44:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-04-13 14:44:28 +0300
commit9f61e31b9ccdfe93b693998cab1baa331f87cd97 (patch)
treee48c97d10a90ef4a544bd84ccb5fd6cae6603e4a /plugins/Scriver/src/chat_window.cpp
parentb217f24e496c98b4f7af416ca61e67571fb6b2bf (diff)
two new functions: CDlgBase::Resize & Hide
Diffstat (limited to 'plugins/Scriver/src/chat_window.cpp')
-rw-r--r--plugins/Scriver/src/chat_window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Scriver/src/chat_window.cpp b/plugins/Scriver/src/chat_window.cpp
index e8536333e9..107c87db54 100644
--- a/plugins/Scriver/src/chat_window.cpp
+++ b/plugins/Scriver/src/chat_window.cpp
@@ -353,7 +353,7 @@ void CChatRoomDlg::onClick_ShowList(CCtrlButton *pButton)
m_bNicklistEnabled = !m_bNicklistEnabled;
pButton->SendMsg(BM_SETIMAGE, IMAGE_ICON, (LPARAM)GetCachedIcon(m_bNicklistEnabled ? "chat_nicklist" : "chat_nicklist2"));
ScrollToBottom();
- SendMessage(m_hwnd, WM_SIZE, 0, 0);
+ Resize();
}
void CChatRoomDlg::onClick_Filter(CCtrlButton *pButton)
@@ -512,7 +512,7 @@ void CChatRoomDlg::UpdateOptions()
InvalidateRect(m_nickList.GetHwnd(), nullptr, TRUE);
}
m_message.SendMsg(EM_REQUESTRESIZE, 0, 0);
- SendMessage(m_hwnd, WM_SIZE, 0, 0);
+ Resize();
RedrawLog2();
}
@@ -903,7 +903,7 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
switch (uMsg) {
case DM_SWITCHINFOBAR:
case DM_SWITCHTOOLBAR:
- SendMessage(m_hwnd, WM_SIZE, 0, 0);
+ Resize();
break;
case WM_SIZE: