diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-01 13:23:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-01 13:23:24 +0300 |
commit | aefca653e36f688b6bed627019ba737430b53f52 (patch) | |
tree | f85e8977ec30dc021f3b6add4ce0b7037c2c8bb7 /plugins/TabSRMM/src/infopanel.cpp | |
parent | 5165df4565a63dceaccbb89ce94d841d413895ed (diff) |
further code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/infopanel.cpp')
-rw-r--r-- | plugins/TabSRMM/src/infopanel.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp index b9674bde09..bba1ddffdd 100644 --- a/plugins/TabSRMM/src/infopanel.cpp +++ b/plugins/TabSRMM/src/infopanel.cpp @@ -196,10 +196,6 @@ void CInfoPanel::showHide() const Utils::showDlgControl(hwndDlg, IDC_PANELSPLITTER, m_active ? SW_SHOW : SW_HIDE);
::SendMessage(hwndDlg, WM_SIZE, 0, 0);
::InvalidateRect(GetDlgItem(hwndDlg, IDC_CONTACTPIC), NULL, TRUE);
- ::SetAeroMargins(m_dat->m_pContainer);
- if (M.isAero())
- ::InvalidateRect(GetParent(hwndDlg), NULL, FALSE);
- ::DM_ScrollToBottom(m_dat, 0, 1);
}
else {
Utils::showDlgControl(hwndDlg, IDC_PANELSPLITTER, m_active ? SW_SHOW : SW_HIDE);
@@ -210,11 +206,11 @@ void CInfoPanel::showHide() const }
::SendMessage(hwndDlg, WM_SIZE, 0, 0);
- ::SetAeroMargins(m_dat->m_pContainer);
- if (M.isAero())
- ::InvalidateRect(GetParent(hwndDlg), NULL, FALSE);
- ::DM_ScrollToBottom(m_dat, 0, 1);
}
+ ::SetAeroMargins(m_dat->m_pContainer);
+ if (M.isAero())
+ ::InvalidateRect(GetParent(hwndDlg), NULL, FALSE);
+ m_dat->DM_ScrollToBottom(0, 1);
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -790,7 +786,8 @@ void CInfoPanel::handleClick(const POINT& pt) ::DestroyMenu(m);
if (S_OK != cmdHandler(r))
- Utils::CmdDispatcher(Utils::CMD_INFOPANEL, m_dat->GetHwnd(), r, 0, 0, m_dat, m_dat->m_pContainer);
+ if (m_dat->MsgWindowMenuHandler(r, MENU_LOGMENU) == 0)
+ m_dat->DM_MsgWindowCmdHandler(r, 0, 0);
}
m_hoverFlags = 0;
Invalidate(TRUE);
@@ -1164,7 +1161,7 @@ INT_PTR CALLBACK CInfoPanel::ConfigDlgProc(HWND hwnd, UINT msg, WPARAM wParam, L m_dat->ShowPicture(false);
::SendMessage(m_dat->GetHwnd(), WM_SIZE, 0, 0);
- ::DM_ScrollToBottom(m_dat, 0, 1);
+ m_dat->DM_ScrollToBottom(0, 1);
}
}
break;
|