summaryrefslogtreecommitdiff
path: root/tipper/message_pump.cpp
diff options
context:
space:
mode:
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;