summaryrefslogtreecommitdiff
path: root/tipper/message_pump.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2009-03-29 15:42:01 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2009-03-29 15:42:01 +0000
commitba2f55ddc45ea29cce65ad1bfcc178da9684141f (patch)
treec5506eebe88d743deab6958793d5b82dcd17723b /tipper/message_pump.cpp
parente2b56bc9c06c95e14d25750caa70e24dfbb0e7b1 (diff)
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
Diffstat (limited to 'tipper/message_pump.cpp')
-rw-r--r--tipper/message_pump.cpp16
1 files changed, 13 insertions, 3 deletions
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;