blob: fcfd679913357de816fe8d7e22ef619eed5fb121 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|