From ba2f55ddc45ea29cce65ad1bfcc178da9684141f Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 29 Mar 2009 15:42:01 +0000 Subject: x64 portability Fixed breaking hook chain on clist infotips git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@438 4f64403b-2f21-0410-a795-97e2b3489a10 --- tipper/message_pump.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'tipper/message_pump.cpp') diff --git a/tipper/message_pump.cpp b/tipper/message_pump.cpp index 72e0aa2..ace9229 100644 --- a/tipper/message_pump.cpp +++ b/tipper/message_pump.cpp @@ -111,7 +111,7 @@ void DeinitMessagePump() { UnregisterClass(POP_WIN_CLASS, hInst); } -int ShowTip(WPARAM wParam, LPARAM lParam) { +INT_PTR ShowTip(WPARAM wParam, LPARAM lParam) { CLCINFOTIP *clcit = (CLCINFOTIP *)lParam; if(clcit->isGroup) return 0; // no group tips (since they're pretty useless) if(clcit->isTreeFocused == 0 && options.show_no_focus == false) return 0; @@ -133,7 +133,12 @@ int ShowTip(WPARAM wParam, LPARAM lParam) { return 1; } -int ShowTipW(WPARAM wParam, LPARAM lParam) { +int ShowTipHook(WPARAM wParam, LPARAM lParam) { + ShowTip(wParam, lParam); + return 0; +} + +INT_PTR ShowTipW(WPARAM wParam, LPARAM lParam) { CLCINFOTIP *clcit = (CLCINFOTIP *)lParam; if(clcit->isGroup) return 0; // no group tips (since they're pretty useless) if(clcit->isTreeFocused == 0 && options.show_no_focus == false) return 0; @@ -153,12 +158,17 @@ int ShowTipW(WPARAM wParam, LPARAM lParam) { return 1; } -int HideTip(WPARAM wParam, LPARAM lParam) { +INT_PTR HideTip(WPARAM wParam, LPARAM lParam) { //CLCINFOTIP *clcit = (CLCINFOTIP *)lParam; PostMPMessage(MUM_DELETEPOPUP, 0, 0); return 1; } +int HideTipHook(WPARAM wParam, LPARAM lParam) { + HideTip(wParam, lParam); + return 0; +} + int ProtoAck(WPARAM wParam, LPARAM lParam) { ACKDATA *ack = (ACKDATA *)lParam; char *szMsg = (char *)ack->lParam; -- cgit v1.2.3