Release 961117
[wine] / include / winpos.h
1 /*
2  * *DeferWindowPos() structure and definitions
3  *
4  * Copyright 1994 Alexandre Julliard
5  */
6
7 #ifndef __WINE_WINPOS_H
8 #define __WINE_WINPOS_H
9
10 #include "win.h"
11
12 #define DWP_MAGIC  0x5057  /* 'WP' */
13
14 /* undocumented SWP flags - from SDK 3.1 */
15 #define SWP_NOCLIENTSIZE        0x0800
16 #define SWP_NOCLIENTMOVE        0x1000
17
18 typedef struct
19 {
20     WORD        actualCount;
21     WORD        suggestedCount;
22     WORD        valid;
23     WORD        wMagic;
24     HWND32      hwndParent;
25     WINDOWPOS16 winPos[1];
26 } DWP;
27
28 extern void WINPOS_FindIconPos( HWND32 hwnd );
29 extern BOOL32 WINPOS_SetActiveWindow( HWND32 hWnd, BOOL32 fMouse,
30                                       BOOL32 fChangeFocus );
31 extern BOOL32 WINPOS_ChangeActiveWindow( HWND32 hwnd, BOOL32 mouseMsg );
32 extern LONG WINPOS_SendNCCalcSize( HWND32 hwnd, BOOL32 calcValidRect,
33                                   RECT16 *newWindowRect, RECT16 *oldWindowRect,
34                                   RECT16 *oldClientRect, SEGPTR winpos,
35                                   RECT16 *newClientRect );
36 extern LONG WINPOS_HandleWindowPosChanging16(WND *wndPtr, WINDOWPOS16 *winpos);
37 extern LONG WINPOS_HandleWindowPosChanging32(WND *wndPtr, WINDOWPOS32 *winpos);
38 extern INT16 WINPOS_WindowFromPoint( WND* scopeWnd, POINT16 pt, WND **ppWnd );
39
40 #endif  /* __WINE_WINPOS_H */