From 7de38a08b97e0554e318b8c25806cef5d47259e6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 12 Jun 2014 17:49:53 +0000 Subject: headers of not adopted plugins moved to !Deprecated git-svn-id: http://svn.miranda-ng.org/main/trunk@9438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- .../!Deprecated/ExternalAPI/m_snappingwindows.h | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 plugins/!Deprecated/ExternalAPI/m_snappingwindows.h (limited to 'plugins/!Deprecated/ExternalAPI/m_snappingwindows.h') diff --git a/plugins/!Deprecated/ExternalAPI/m_snappingwindows.h b/plugins/!Deprecated/ExternalAPI/m_snappingwindows.h new file mode 100644 index 0000000000..fcfd679913 --- /dev/null +++ b/plugins/!Deprecated/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 -- cgit v1.2.3