Release 960521
[wine/multimedia.git] / include / winpos.h
blob02b2a92bab04aa6224b954914ad7644a82bc170d
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 0x5057 /* 'WP' */
14 /* undocumented SWP flags - from SDK 3.1 */
15 #define SWP_NOCLIENTSIZE 0x0800
16 #define SWP_NOCLIENTMOVE 0x1000
18 typedef struct
20 WORD actualCount;
21 WORD suggestedCount;
22 WORD valid;
23 WORD wMagic;
24 HWND hwndParent;
25 WINDOWPOS16 winPos[1];
26 } DWP;
28 typedef struct
30 HTASK hWindowTask;
31 HTASK hTaskSendTo;
32 BOOL wFlag;
33 } ACTIVATESTRUCT, *LPACTIVATESTRUCT;
35 extern void WINPOS_FindIconPos( HWND hwnd );
36 extern BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse, BOOL fChangeFocus);
37 extern BOOL WINPOS_ChangeActiveWindow( HWND hwnd, BOOL mouseMsg );
38 extern LONG WINPOS_SendNCCalcSize( HWND hwnd, BOOL calcValidRect,
39 RECT16 *newWindowRect, RECT16 *oldWindowRect,
40 RECT16 *oldClientRect, SEGPTR winpos,
41 RECT16 *newClientRect );
42 extern LONG WINPOS_HandleWindowPosChanging16(WND *wndPtr, WINDOWPOS16 *winpos);
43 extern LONG WINPOS_HandleWindowPosChanging32(WND *wndPtr, WINDOWPOS32 *winpos);
44 extern INT16 WINPOS_WindowFromPoint( POINT16 pt, WND **ppWnd );
46 #endif /* __WINE_WINPOS_H */