From 41813a924528b58c0ff4fd95f9f90ff823c76e69 Mon Sep 17 00:00:00 2001 From: sje Date: Fri, 3 Aug 2007 15:39:05 +0000 Subject: git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@322 4f64403b-2f21-0410-a795-97e2b3489a10 --- message_notify/popups.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'message_notify/popups.cpp') 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); -- cgit v1.2.3