diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-04 20:19:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-04 20:19:21 +0000 |
commit | 8a4d920ac00055a4ae15bafcce0e696abea9d6b1 (patch) | |
tree | c377fcfbd90de3a2178d93779828cbad75b44867 /plugins/TabSRMM/src/infopanel.cpp | |
parent | 97f4d1524fde91f4c4a66f2d1e6d135f74c2bd1a (diff) |
- AvatarChanged finally destroyed;
- info panel's size calculation moved to WM_SIZE handler;
- many drawing glitches fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@10056 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/infopanel.cpp')
-rw-r--r-- | plugins/TabSRMM/src/infopanel.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp index 06878b606e..beb3ddfdd1 100644 --- a/plugins/TabSRMM/src/infopanel.cpp +++ b/plugins/TabSRMM/src/infopanel.cpp @@ -58,7 +58,7 @@ int CInfoPanel::setPanelHandler(TWindowData *dat, WPARAM wParam, LPARAM lParam) if (dat->pContainer->settings->fPrivate && srcDat->pContainer != dat->pContainer)
return 0;
- dat->panelWidth = -1;
+
dat->Panel->setHeight((LONG)lParam);
}
}
@@ -1202,7 +1202,7 @@ INT_PTR CALLBACK CInfoPanel::ConfigDlgProc(HWND hwnd, UINT msg, WPARAM wParam, L db_unset(m_dat->hContact, SRMSGMOD_T, "hideavatar");
else
db_set_b(m_dat->hContact, SRMSGMOD_T, "hideavatar", vNew);
- m_dat->panelWidth = -1;
+
::ShowPicture(m_dat, FALSE);
::SendMessage(m_dat->hwnd, WM_SIZE, 0, 0);
::DM_ScrollToBottom(m_dat, 0, 1);
@@ -1256,7 +1256,6 @@ INT_PTR CALLBACK CInfoPanel::ConfigDlgProc(HWND hwnd, UINT msg, WPARAM wParam, L if (m_height != lOldHeight) {
::SendMessage(m_dat->hwnd, WM_SIZE, 0, 0);
- m_dat->panelWidth = -1;
::SetAeroMargins(m_dat->pContainer);
::RedrawWindow(m_dat->hwnd, NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW);
::RedrawWindow(GetParent(m_dat->hwnd), NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW);
@@ -1294,7 +1293,7 @@ int CInfoPanel::invokeConfigDialog(const POINT& pt) RECT rc;
::GetWindowRect(m_dat->hwnd, &rc);
rc.bottom = rc.top + m_height;
- rc.right -= m_dat->panelWidth;
+ rc.right -= m_dat->iPanelAvatarX;
POINT ptTest = pt;
if (!::PtInRect(&rc, ptTest))
|