diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-11 19:39:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-11 19:39:10 +0000 |
commit | af0bb7a5be5c59b6b23e9bf6e6903a8bce3d22ab (patch) | |
tree | 6a19a4618fd5c356e2383a49bcaadb8de786761f /src | |
parent | 52fe3f7be13509bd336c5efa28b8310a23211034 (diff) |
srmm icons work in SRMM & Scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@4427 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdmsg/src/statusicon.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/statusicon.cpp b/src/core/stdmsg/src/statusicon.cpp index 25e7813615..294493e6e5 100644 --- a/src/core/stdmsg/src/statusicon.cpp +++ b/src/core/stdmsg/src/statusicon.cpp @@ -32,7 +32,7 @@ static int OnSrmmIconChanged(WPARAM wParam, LPARAM) else {
HWND hwnd = WindowList_Find(g_dat.hMessageWindowList, hContact);
if (hwnd != NULL)
- PostMessage(GetParent(hwnd), DM_STATUSICONCHANGE, 0, 0);
+ PostMessage(hwnd, DM_STATUSICONCHANGE, 0, 0);
}
return 0;
}
@@ -76,6 +76,8 @@ HANDLE hServiceIcon[3]; int InitStatusIcons()
{
+ HookEvent(ME_MSG_ICONSCHANGED, OnSrmmIconChanged);
+
hHookIconPressedEvt = CreateHookableEvent(ME_MSG_ICONPRESSED);
return 0;
}
|