aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/syscb/callbacks/wndcb.cpp
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/syscb/callbacks/wndcb.cpp
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/syscb/callbacks/wndcb.cpp')
-rw-r--r--Src/Wasabi/api/syscb/callbacks/wndcb.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/Src/Wasabi/api/syscb/callbacks/wndcb.cpp b/Src/Wasabi/api/syscb/callbacks/wndcb.cpp
new file mode 100644
index 00000000..69a95bce
--- /dev/null
+++ b/Src/Wasabi/api/syscb/callbacks/wndcb.cpp
@@ -0,0 +1,36 @@
+#include "precomp.h"
+#include "wndcb.h"
+
+using namespace WndCallback;
+
+int WndCallbackI::syscb_notify(int msg, intptr_t param1, intptr_t param2)
+{
+ switch (msg)
+ {
+ case SHOWWINDOW:
+ {
+ WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
+ if (!i) return 0;
+ return onShowWindow(i->c, i->guid, i->groupid);
+ }
+ case HIDEWINDOW:
+ {
+ WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
+ if (!i) return 0;
+ return onHideWindow(i->c, i->guid, i->groupid);
+ }
+ case GROUPCHANGE:
+ {
+ WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
+ if (!i) return 0;
+ return onGroupChange(i->groupid);
+ }
+ case TYPECHANGE:
+ {
+ WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
+ if (!i) return 0;
+ return onTypeChange(i->wndtype);
+ }
+ }
+ return 0;
+}