diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-03 19:23:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-03 19:23:53 +0300 |
commit | 1516e9198b589f215d0fd7d52a6aecce2dc380f2 (patch) | |
tree | 3d378daa18f11e122d951fb80f79dfb770a986d0 /plugins/TabSRMM/src/msgs.cpp | |
parent | 7f1d7982f443ebd5ed80ae980145f911842a0668 (diff) |
tabSRMM:
- fixes #728;
- panel object aggregated instead of embedding;
- more UI buttons for the groupchat window;
- crazy translation optimization removed
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgs.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp index a546c7a84e..ade80f5d73 100644 --- a/plugins/TabSRMM/src/msgs.cpp +++ b/plugins/TabSRMM/src/msgs.cpp @@ -122,6 +122,7 @@ CTabBaseDlg::CTabBaseDlg(TNewWindowData *pData, int iResource) m_log(this, IDC_LOG),
m_message(this, IDC_MESSAGE),
newData(pData),
+ m_pPanel(this),
m_pContainer(pData->pContainer)
{
@@ -138,23 +139,23 @@ INT_PTR CTabBaseDlg::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) switch (msg) {
case DM_SETINFOPANEL: // broadcasted when global info panel setting changes
if (wParam == 0 && lParam == 0) {
- m_pPanel->getVisibility();
- m_pPanel->loadHeight();
- m_pPanel->showHide();
+ m_pPanel.getVisibility();
+ m_pPanel.loadHeight();
+ m_pPanel.showHide();
}
else {
CTabBaseDlg *srcDat = (CTabBaseDlg*)wParam;
if (lParam == 0)
- m_pPanel->loadHeight();
+ m_pPanel.loadHeight();
else {
- if (srcDat && lParam && this != srcDat && !m_pPanel->isPrivateHeight()) {
+ if (srcDat && lParam && this != srcDat && !m_pPanel.isPrivateHeight()) {
if (srcDat->m_bType != m_bType && M.GetByte("syncAllPanels", 0) == 0)
return 0;
if (m_pContainer->settings->fPrivate && srcDat->m_pContainer != m_pContainer)
return 0;
- m_pPanel->setHeight((LONG)lParam);
+ m_pPanel.setHeight((LONG)lParam);
}
}
SendMessage(m_hwnd, WM_SIZE, 0, 0);
@@ -223,7 +224,7 @@ INT_PTR CTabBaseDlg::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) // wParam == id of the "anchor" element, defaults to the panel status field (for away msg retrieval)
// lParam == new text to show
if (!IsIconic(m_pContainer->hwnd) && m_pContainer->hwndActive == m_hwnd)
- m_pPanel->showTip(wParam, lParam);
+ m_pPanel.showTip(wParam, lParam);
return 0;
case DM_STATUSBARCHANGED:
|