summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-13 18:07:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-13 18:07:30 +0300
commitf2b5be54bc5ad3921f731f2b1f4d5d08682aaa9b (patch)
treee9271e66da042a7409cf5751f4b9ab2ff24e643d
parentb3c47be3e97048e1742da50c50b40fc8738daef2 (diff)
fix for tabSRMM alt+tab icon
-rw-r--r--plugins/TabSRMM/src/container.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp
index 61cd0cea61..868c5f051f 100644
--- a/plugins/TabSRMM/src/container.cpp
+++ b/plugins/TabSRMM/src/container.cpp
@@ -60,6 +60,7 @@ void TContainerData::InitRedraw()
void TContainerData::SetIcon(CTabBaseDlg *pDlg, HICON hIcon)
{
HICON hIconMsg = PluginConfig.g_IconMsgEvent;
+ HICON hIconBig = (pDlg && pDlg->m_cache) ? Skin_LoadProtoIcon(pDlg->m_cache->getProto(), pDlg->m_cache->getStatus(), true) : nullptr;
if (Win7Taskbar->haveLargeIcons()) {
if (hIcon == PluginConfig.g_buttonBarIcons[ICON_DEFAULT_TYPING] || hIcon == hIconMsg) {
@@ -80,7 +81,6 @@ void TContainerData::SetIcon(CTabBaseDlg *pDlg, HICON hIcon)
if (pDlg->m_pContainer->m_dwFlags & CNT_AVATARSONTASKBAR)
pDlg->m_hTaskbarIcon = pDlg->IconFromAvatar();
- HICON hIconBig = (pDlg->m_cache) ? Skin_LoadProtoIcon(pDlg->m_cache->getProto(), pDlg->m_cache->getStatus(), true) : nullptr;
if (pDlg->m_hTaskbarIcon) {
SendMessage(m_hwnd, WM_SETICON, ICON_BIG, (LPARAM)pDlg->m_hTaskbarIcon);
SendMessage(m_hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
@@ -108,7 +108,6 @@ void TContainerData::SetIcon(CTabBaseDlg *pDlg, HICON hIcon)
return;
}
- HICON hIconBig = nullptr;
if (hIcon == hIconMsg)
hIconBig = Skin_LoadIcon(SKINICON_EVENT_MESSAGE, true);