diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-07 15:29:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-07 15:29:12 +0300 |
commit | e43e5e9e3ff94b20953c840a819952e4221654fa (patch) | |
tree | b942f39b5d614bb62ee21b18c700507b8b8ed5aa /plugins/TabSRMM/src/hotkeyhandler.cpp | |
parent | ed526dc2746319cc3dbe376e9af20f6a49850687 (diff) |
tabSRMM:
- useless message DM_SETICON replaced with a call of SetIcon;
- fixes #1866 (when sub is changed, tabSRMM doesn't update an avatar in taskbar)
- code cleaning & names conflict resolution
Diffstat (limited to 'plugins/TabSRMM/src/hotkeyhandler.cpp')
-rw-r--r-- | plugins/TabSRMM/src/hotkeyhandler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/hotkeyhandler.cpp b/plugins/TabSRMM/src/hotkeyhandler.cpp index 5c1495c615..cbef09d56a 100644 --- a/plugins/TabSRMM/src/hotkeyhandler.cpp +++ b/plugins/TabSRMM/src/hotkeyhandler.cpp @@ -99,7 +99,7 @@ void TSAPI HandleMenuEntryFromhContact(MCONTACT hContact) SendMessage(hWnd, DM_QUERYCONTAINER, 0, (LPARAM)&pContainer);
if (pContainer) {
ActivateExistingTab(pContainer, hWnd);
- pContainer->hwndSaved = nullptr;
+ pContainer->m_hwndSaved = nullptr;
SetForegroundWindow(pContainer->m_hwnd);
}
else CallService(MS_MSG_SENDMESSAGE, hContact, 0);
@@ -400,8 +400,8 @@ LONG_PTR CALLBACK HotkeyHandlerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP if (M.m_pfnDwmExtendFrameIntoClientArea)
M.m_pfnDwmExtendFrameIntoClientArea(pCont->m_hwnd, &m);
}
- if (pCont->SideBar)
- if (pCont->SideBar->isActive()) // the container for the sidebar buttons
+ if (pCont->m_pSideBar)
+ if (pCont->m_pSideBar->isActive()) // the container for the sidebar buttons
RedrawWindow(GetDlgItem(pCont->m_hwnd, 5000), nullptr, nullptr, RDW_ERASE | RDW_INVALIDATE | RDW_UPDATENOW);
RedrawWindow(pCont->m_hwnd, nullptr, nullptr, RDW_ERASE | RDW_INVALIDATE | RDW_UPDATENOW | RDW_ALLCHILDREN);
}
@@ -483,11 +483,11 @@ LONG_PTR CALLBACK HotkeyHandlerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP case WM_DISPLAYCHANGE:
for (TContainerData *pCont = pFirstContainer; pCont; pCont = pCont->pNext)
if (CSkin::m_skinEnabled) { // invalidate cached background DCs for skinned containers
- pCont->oldDCSize.cx = pCont->oldDCSize.cy = 0;
- SelectObject(pCont->cachedDC, pCont->oldHBM);
- DeleteObject(pCont->cachedHBM);
- DeleteDC(pCont->cachedDC);
- pCont->cachedDC = nullptr;
+ pCont->m_oldDCSize.cx = pCont->m_oldDCSize.cy = 0;
+ SelectObject(pCont->m_cachedDC, pCont->m_oldHBM);
+ DeleteObject(pCont->m_cachedHBM);
+ DeleteDC(pCont->m_cachedDC);
+ pCont->m_cachedDC = nullptr;
RedrawWindow(pCont->m_hwnd, nullptr, nullptr, RDW_INVALIDATE | RDW_UPDATENOW | RDW_FRAME);
}
break;
|