diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-21 13:17:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-21 13:17:19 +0000 |
commit | dc16fa8c5fa2e477b6ce896b8eb237462735baae (patch) | |
tree | 0decd239db25aa48a16ec6b4da49a1f678f3cedc /plugins/Scriver | |
parent | 6465dd41cc06b5952e77ccc72396627abf385a17 (diff) |
fix for window flashing in StdChat & Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@7809 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/chat/main.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/plugins/Scriver/src/chat/main.cpp b/plugins/Scriver/src/chat/main.cpp index 37dc0bb167..bb86a5013c 100644 --- a/plugins/Scriver/src/chat/main.cpp +++ b/plugins/Scriver/src/chat/main.cpp @@ -106,12 +106,24 @@ static void OnSetStatus(SESSION_INFO *si, int wStatus) PostMessage(si->hWnd, GC_FIXTABICONS, 0, 0);
}
+static void OnFlashHighlight(SESSION_INFO *si, int bInactive)
+{
+ if (!bInactive || !si->hWnd)
+ return;
+
+ if (g_Settings.bFlashWindowHighlight)
+ SendMessage(GetParent(si->hWnd), CM_STARTFLASHING, 0, 0);
+ SendMessage(si->hWnd, GC_SETMESSAGEHIGHLIGHT, 0, 0);
+}
+
static void OnFlashWindow(SESSION_INFO *si, int bInactive)
{
- if (bInactive && si->hWnd && g_Settings.bFlashWindowHighlight)
+ if (!bInactive || !si->hWnd)
+ return;
+
+ if (g_Settings.bFlashWindow)
SendMessage(GetParent(si->hWnd), CM_STARTFLASHING, 0, 0);
- if (bInactive && si->hWnd)
- SendMessage(si->hWnd, GC_SETMESSAGEHIGHLIGHT, 0, 0);
+ SendMessage(si->hWnd, GC_SETTABHIGHLIGHT, 0, 0);
}
static void OnCreateModule(MODULEINFO *mi)
@@ -195,6 +207,7 @@ int Chat_Load() pci->OnEventBroadcast = OnEventBroadcast;
pci->OnSetStatusBar = OnSetStatusBar;
pci->OnFlashWindow = OnFlashWindow;
+ pci->OnFlashHighlight = OnFlashHighlight;
pci->ShowRoom = ShowRoom;
pci->DoPopup = DoPopup;
|