Fixed potential memory corruption in EVENT_QueryZOrder.
[wine/multimedia.git] / include / winpos.h
blob82fadd09d876cc025ba0e89e7aa85d8e0716306d
1 /*
2 * *DeferWindowPos() structure and definitions
4 * Copyright 1994 Alexandre Julliard
5 */
7 #ifndef __WINE_WINPOS_H
8 #define __WINE_WINPOS_H
10 #include "win.h"
12 #define DWP_MAGIC ((INT)('W' | ('P' << 8) | ('O' << 16) | ('S' << 24)))
14 /* undocumented SWP flags - from SDK 3.1 */
15 #define SWP_NOCLIENTSIZE 0x0800
16 #define SWP_NOCLIENTMOVE 0x1000
18 struct tagWINDOWPOS16;
20 typedef struct
22 INT actualCount;
23 INT suggestedCount;
24 BOOL valid;
25 INT wMagic;
26 HWND hwndParent;
27 WINDOWPOS winPos[1];
28 } DWP;
30 extern BOOL WINPOS_RedrawIconTitle( HWND hWnd );
31 extern BOOL WINPOS_ShowIconTitle( WND* pWnd, BOOL bShow );
32 extern void WINPOS_GetMinMaxInfo( WND* pWnd, POINT *maxSize,
33 POINT *maxPos, POINT *minTrack,
34 POINT *maxTrack );
35 extern UINT WINPOS_MinMaximize( WND* pWnd, UINT16 cmd, LPRECT16 lpPos);
36 extern BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse,
37 BOOL fChangeFocus );
38 extern BOOL WINPOS_ChangeActiveWindow( HWND hwnd, BOOL mouseMsg );
39 extern LONG WINPOS_SendNCCalcSize(HWND hwnd, BOOL calcValidRect,
40 RECT *newWindowRect, RECT *oldWindowRect,
41 RECT *oldClientRect, WINDOWPOS *winpos,
42 RECT *newClientRect );
43 extern LONG WINPOS_HandleWindowPosChanging16(WND *wndPtr, struct tagWINDOWPOS16 *winpos);
44 extern LONG WINPOS_HandleWindowPosChanging(WND *wndPtr, WINDOWPOS *winpos);
45 extern INT16 WINPOS_WindowFromPoint( WND* scopeWnd, POINT16 pt, WND **ppWnd );
46 extern void WINPOS_CheckInternalPos( WND* wndPtr );
47 extern BOOL WINPOS_ActivateOtherWindow(WND* pWnd);
48 extern BOOL WINPOS_CreateInternalPosAtom(void);
50 #endif /* __WINE_WINPOS_H */