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/infopanel.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/infopanel.cpp')
-rw-r--r-- | plugins/TabSRMM/src/infopanel.cpp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp index f1e4a2d977..a07f688019 100644 --- a/plugins/TabSRMM/src/infopanel.cpp +++ b/plugins/TabSRMM/src/infopanel.cpp @@ -40,6 +40,30 @@ wchar_t *xStatusDescr[] = TInfoPanelConfig CInfoPanel::m_ipConfig = { 0 };
+/////////////////////////////////////////////////////////////////////////////////////////
+
+CInfoPanel::CInfoPanel(CTabBaseDlg *dat)
+{
+ if (dat) {
+ m_dat = dat;
+ m_isChat = dat->m_bType == SESSIONTYPE_CHAT ? true : false;
+ }
+ m_defaultHeight = PluginConfig.m_panelHeight;
+ m_defaultMUCHeight = PluginConfig.m_MUCpanelHeight;
+ m_hwndConfig = 0;
+ m_hoverFlags = 0;
+ m_tip = 0;
+}
+
+CInfoPanel::~CInfoPanel()
+{
+ if (m_hwndConfig)
+ ::DestroyWindow(m_hwndConfig);
+ saveHeight(true);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
void CInfoPanel::setActive(const int newActive)
{
m_active = newActive ? true : false;
@@ -944,7 +968,7 @@ LRESULT CALLBACK CInfoPanel::avatarParentSubclass(HWND hwnd, UINT msg, WPARAM wP GetClientRect(hwnd, &rcItem);
rc = rcItem;
- if (!IsWindowEnabled(hwnd) || !dat->m_pPanel->isActive() || !dat->m_bShowInfoAvatar)
+ if (!IsWindowEnabled(hwnd) || !dat->m_pPanel.isActive() || !dat->m_bShowInfoAvatar)
return TRUE;
HDC dcWin = (HDC)wParam;
@@ -978,7 +1002,7 @@ LRESULT CALLBACK CInfoPanel::avatarParentSubclass(HWND hwnd, UINT msg, WPARAM wP else {
rc.bottom += 2;
rc.left -= 3; rc.right += 3;
- dat->m_pPanel->renderBG(dcWin, rc, &SkinItems[ID_EXTBKINFOPANELBG], M.isAero(), false);
+ dat->m_pPanel.renderBG(dcWin, rc, &SkinItems[ID_EXTBKINFOPANELBG], M.isAero(), false);
}
if (CSkin::m_bAvatarBorderType == 1) {
|