summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_snappingwindows.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-07-03 18:25:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-07-03 18:25:01 +0000
commit0a3cc6ed06a3eac9f9c2243c432c6d4443603aae (patch)
tree240ddc26fd18d02cc8a0f2d8770cd618527f9059 /plugins/ExternalAPI/m_snappingwindows.h
parent4641ff7a3a0d6a124c22a5c044bffd04073720fc (diff)
AvatarHistory adopted
git-svn-id: http://svn.miranda-ng.org/main/trunk@739 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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