1
0

wndcb.cpp 788 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "precomp.h"
  2. #include "wndcb.h"
  3. using namespace WndCallback;
  4. int WndCallbackI::syscb_notify(int msg, intptr_t param1, intptr_t param2)
  5. {
  6. switch (msg)
  7. {
  8. case SHOWWINDOW:
  9. {
  10. WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
  11. if (!i) return 0;
  12. return onShowWindow(i->c, i->guid, i->groupid);
  13. }
  14. case HIDEWINDOW:
  15. {
  16. WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
  17. if (!i) return 0;
  18. return onHideWindow(i->c, i->guid, i->groupid);
  19. }
  20. case GROUPCHANGE:
  21. {
  22. WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
  23. if (!i) return 0;
  24. return onGroupChange(i->groupid);
  25. }
  26. case TYPECHANGE:
  27. {
  28. WndInfo *i = reinterpret_cast<WndInfo *>((void *)param1);
  29. if (!i) return 0;
  30. return onTypeChange(i->wndtype);
  31. }
  32. }
  33. return 0;
  34. }