summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgutils.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/TabSRMM/src/msgdlgutils.cpp
parentb217f24e496c98b4f7af416ca61e67571fb6b2bf (diff)
two new functions: CDlgBase::Resize & Hide
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 3901453004..a3f47459f5 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -347,7 +347,7 @@ int CTabBaseDlg::MsgWindowMenuHandler(int selection, int menuId)
}
ShowPicture(false);
- SendMessage(m_hwnd, WM_SIZE, 0, 0);
+ Resize();
DM_ScrollToBottom(0, 1);
return 1;
@@ -735,7 +735,7 @@ void CTabBaseDlg::ShowPicture(bool showNewPic)
if (!m_hwndPanelPic) {
InvalidateRect(m_hwnd, nullptr, TRUE);
UpdateWindow(m_hwnd);
- SendMessage(m_hwnd, WM_SIZE, 0, 0);
+ Resize();
}
return;
}
@@ -753,7 +753,7 @@ void CTabBaseDlg::ShowPicture(bool showNewPic)
if (!showNewPic)
SetDialogToType();
else
- SendMessage(m_hwnd, WM_SIZE, 0, 0);
+ Resize();
}
void CTabBaseDlg::FlashOnClist(MEVENT hEvent, DBEVENTINFO *dbei)
@@ -1304,7 +1304,7 @@ void CSrmmWindow::LoadOwnAvatar()
AdjustBottomAvatarDisplay();
GetObject(m_hOwnPic, sizeof(bm), &bm);
CalcDynamicAvatarSize(&bm);
- SendMessage(m_hwnd, WM_SIZE, 0, 0);
+ Resize();
}
}