diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-13 18:07:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-13 18:07:30 +0300 |
commit | f2b5be54bc5ad3921f731f2b1f4d5d08682aaa9b (patch) | |
tree | e9271e66da042a7409cf5751f4b9ab2ff24e643d | |
parent | b3c47be3e97048e1742da50c50b40fc8738daef2 (diff) |
fix for tabSRMM alt+tab icon
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 3 |
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);
|