summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/chat_main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-09 15:08:43 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-09 15:08:43 +0300
commit36c6cafcd006dc8d07d67d127bf4d26b7940b1b4 (patch)
treeb260809733ea1aed8aeee368993ca5021b5ce84b /plugins/Scriver/src/chat_main.cpp
parent33d16d137f4e468996592d3961a4cf8a2849cf55 (diff)
Scriver: container-related code moved to the class
Diffstat (limited to 'plugins/Scriver/src/chat_main.cpp')
-rw-r--r--plugins/Scriver/src/chat_main.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/plugins/Scriver/src/chat_main.cpp b/plugins/Scriver/src/chat_main.cpp
index 6fdf6ac8bc..ddf786e469 100644
--- a/plugins/Scriver/src/chat_main.cpp
+++ b/plugins/Scriver/src/chat_main.cpp
@@ -44,16 +44,12 @@ static void OnFlashHighlight(SESSION_INFO *si, int bInactive)
if (!bInactive || !si->pDlg)
return;
- if (g_Settings.bFlashWindowHighlight)
- SendMessage(GetParent(si->pDlg->GetHwnd()), CM_STARTFLASHING, 0, 0);
-
si->wState |= GC_EVENT_HIGHLIGHT;
si->pDlg->FixTabIcons();
si->pDlg->UpdateTitle();
- HWND hwndParent = GetParent(si->pDlg->GetHwnd());
- if (g_Settings.bFlashWindowHighlight && GetActiveWindow() != si->pDlg->GetHwnd() && GetForegroundWindow() != hwndParent)
- SendMessage(hwndParent, CM_STARTFLASHING, 0, 0);
+ if (g_Settings.bFlashWindowHighlight)
+ si->pDlg->StartFlashing();
}
static void OnFlashWindow(SESSION_INFO *si, int bInactive)
@@ -61,15 +57,11 @@ static void OnFlashWindow(SESSION_INFO *si, int bInactive)
if (!bInactive || !si->pDlg)
return;
- if (g_Settings.bFlashWindow)
- SendMessage(GetParent(si->pDlg->GetHwnd()), CM_STARTFLASHING, 0, 0);
-
si->pDlg->FixTabIcons();
si->pDlg->UpdateTitle();
- HWND hwndParent = GetParent(si->pDlg->GetHwnd());
- if (g_Settings.bFlashWindow && GetActiveWindow() != hwndParent && GetForegroundWindow() != hwndParent)
- SendMessage(hwndParent, CM_STARTFLASHING, 0, 0);
+ if (g_Settings.bFlashWindow)
+ si->pDlg->StartFlashing();
}
static void OnDestroyModule(MODULEINFO *mi)