summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_snappingwindows.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ExternalAPI/m_snappingwindows.h')
-rw-r--r--plugins/ExternalAPI/m_snappingwindows.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/ExternalAPI/m_snappingwindows.h b/plugins/ExternalAPI/m_snappingwindows.h
new file mode 100644
index 0000000000..fcfd679913
--- /dev/null
+++ b/plugins/ExternalAPI/m_snappingwindows.h
@@ -0,0 +1,25 @@
+#ifndef SNAPPING_WINDOWS_H
+#define SNAPPING_WINDOWS_H
+
+struct SnapWindowProc_t
+{
+ HWND hWnd;
+ //
+ SIZE m_szMoveOffset;
+ WPARAM wParam;
+ LPARAM lParam;
+ //
+ int Reserved1;
+ int Reserved2;
+ int Reserved3;
+};
+
+#define CallSnappingWindowProc(hwnd,nMessage,wParam,lParam) {static struct SnapWindowProc_t SnapInfo; \
+ if ((nMessage == WM_MOVING) || (nMessage == WM_NCLBUTTONDOWN) || (nMessage == WM_SYSCOMMAND) || (nMessage == WM_SIZING)){ \
+ SnapInfo.hWnd = hwnd; \
+ SnapInfo.wParam = wParam; \
+ SnapInfo.lParam = lParam; \
+ CallService("Utils/SnapWindowProc",(WPARAM)&SnapInfo,nMessage); \
+ if (nMessage == WM_SIZING) return 1;}}
+
+#endif //SNAPPING_WINDOWS_H \ No newline at end of file