diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-02 19:32:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-02 19:32:46 +0300 |
commit | 47873187548840ecfe712bd227a2c792277d5f21 (patch) | |
tree | a0be17e24e28f0c5e444b8a89c5879eb73fc700b /plugins/TabSRMM/src/container.cpp | |
parent | 5e244131bbe6ffd02982917ea26746a21b77fb94 (diff) |
further tabSRMM cleanup
- duplicated functionality moved to CTabBaseDlg::DlgProc;
- groupchat specific divider options removed, global ones are used instead;
- more UI classes for CChatRoomDlg;
- code cleaning
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index d4cbb47f6a..2fb8fdc715 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -61,13 +61,13 @@ void TSAPI SetAeroMargins(TContainerData *pContainer) RECT rcWnd;
if (dat->m_bType == SESSIONTYPE_IM) {
- if (dat->m_Panel->isActive())
+ if (dat->m_pPanel->isActive())
GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd);
else
GetWindowRect(dat->GetHwnd(), &rcWnd);
}
else {
- if (dat->m_Panel->isActive())
+ if (dat->m_pPanel->isActive())
GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd);
else
GetWindowRect(dat->GetHwnd(), &rcWnd);
@@ -970,7 +970,8 @@ panel_found: break;
case ID_FILE_SAVEMESSAGELOGAS:
- SendMessage(pContainer->hwndActive, DM_SAVEMESSAGELOG, 0, 0);
+ if (dat)
+ dat->DM_SaveLogAsRTF();
break;
case ID_FILE_CLOSEMESSAGESESSION:
@@ -1076,8 +1077,8 @@ panel_found: POINT pt;
GetWindowRect(pContainer->hwndActive, &rc);
pt.x = rc.left + 10;
- pt.y = rc.top + dat->m_Panel->getHeight() - 10;
- dat->m_Panel->invokeConfigDialog(pt);
+ pt.y = rc.top + dat->m_pPanel->getHeight() - 10;
+ dat->m_pPanel->invokeConfigDialog(pt);
}
return 0;
@@ -1239,7 +1240,7 @@ panel_found: dat = (CTabBaseDlg*)GetWindowLongPtr(pContainer->hwndActive, GWLP_USERDATA);
if (dat && dat->m_bType == SESSIONTYPE_IM) {
if (dat->m_idle && pContainer->hwndActive && IsWindow(pContainer->hwndActive))
- dat->m_Panel->Invalidate(TRUE);
+ dat->m_pPanel->Invalidate(TRUE);
}
else if (dat)
SendMessage(dat->GetHwnd(), GC_UPDATESTATUSBAR, 0, 0);
|