Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
686 B

  1. #define SETWINDOWPOINTER(hwnd, name, p) SetWindowLongPtr(hwnd, 0, (LONG_PTR)p)
  2. #define GETWINDOWPOINTER(hwnd, name) ((name)GetWindowLongPtr(hwnd, 0))
  3. #define ALLOCWINDOWPOINTER(name, size) ((name)LocalAlloc(LPTR, size))
  4. #define FREEWINDOWPOINTER(p) LocalFree((HLOCAL)p)
  5. #define GETWINDOWID(hwnd) GetWindowLong(hwnd, GWLP_ID)
  6. #define DRAGSIZECLASSNAME TEXT("DragSizeWindow")
  7. HWND WINAPI CreateDragSizeWindow(LONG style, int x, int y, int wid, int hgt, HWND hwndParent, LONG wID);
  8. BOOL FAR PASCAL InitDragSizeClass(void);
  9. #define DSM_DRAGPOS (WM_USER)
  10. #define DSN_BEGINDRAG (0)
  11. #define DSN_DRAGGING (1)
  12. #define DSN_ENDDRAG (2)
  13. #define DSN_NCCREATE (3)