summaryrefslogtreecommitdiff
path: root/message_notify
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-08-03 15:39:05 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-08-03 15:39:05 +0000
commit41813a924528b58c0ff4fd95f9f90ff823c76e69 (patch)
tree2589015431ac9fc82c7c9885970bc0a6e2df2f88 /message_notify
parent161c6d929c7effecbed5ca80876443889c06d2c1 (diff)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@322 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'message_notify')
-rw-r--r--message_notify/popups.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/message_notify/popups.cpp b/message_notify/popups.cpp
index 9066613..20a58f0 100644
--- a/message_notify/popups.cpp
+++ b/message_notify/popups.cpp
@@ -42,6 +42,11 @@ void __stdcall sttCloseSRMMWindowProc( ULONG dwParam )
LRESULT CALLBACK NullWindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
{
switch( message ) {
+ case UM_INITPOPUP:
+ HANDLE hContact = (HANDLE)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd, (LPARAM)&hContact);
+ if(!InList(hContact, hWnd)) AddToWindowList(hContact, hWnd);
+ return TRUE;
+
case WM_COMMAND: {
HANDLE hContact = (HANDLE)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd, (LPARAM)&hContact);
QueueUserAPC( sttOpenSRMMWindowProc , mainThread, ( ULONG )hContact );
@@ -78,10 +83,6 @@ LRESULT CALLBACK NullWindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM
return TRUE;
}
- case UM_INITPOPUP:
- HANDLE hContact = (HANDLE)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd, (LPARAM)&hContact);
- if(!InList(hContact, hWnd)) AddToWindowList(hContact, hWnd);
- return TRUE;
}
return DefWindowProc(hWnd, message, wParam, lParam);