Pass the stdin/stdout handles on startup to use as console (based on a
[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 "windef.h"
11 #include "winbase.h"
12 #include "wingdi.h"
13 #include "winuser.h"
14
15 struct tagWND;
16
17 #define DWP_MAGIC  ((INT)('W' | ('P' << 8) | ('O' << 16) | ('S' << 24)))
18
19 /* undocumented SWP flags - from SDK 3.1 */
20 #define SWP_NOCLIENTSIZE        0x0800
21 #define SWP_NOCLIENTMOVE        0x1000
22
23 /* Wine extra SWP flag */
24 #define SWP_WINE_NOHOSTMOVE     0x80000000
25
26 struct tagWINDOWPOS16;
27
28 typedef struct
29 {
30     INT       actualCount;
31     INT       suggestedCount;
32     BOOL      valid;
33     INT       wMagic;
34     HWND      hwndParent;
35     WINDOWPOS winPos[1];
36 } DWP;
37
38 extern BOOL WINPOS_RedrawIconTitle( HWND hWnd );
39 extern BOOL WINPOS_ShowIconTitle( struct tagWND* pWnd, BOOL bShow );
40 extern void   WINPOS_GetMinMaxInfo( struct tagWND* pWnd, POINT *maxSize,
41                                     POINT *maxPos, POINT *minTrack,
42                                     POINT *maxTrack );
43 extern UINT WINPOS_MinMaximize( struct tagWND* pWnd, UINT16 cmd, LPRECT16 lpPos);
44 extern BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse,
45                                       BOOL fChangeFocus );
46 extern BOOL WINPOS_ChangeActiveWindow( HWND hwnd, BOOL mouseMsg );
47 extern LONG WINPOS_SendNCCalcSize(HWND hwnd, BOOL calcValidRect,
48                                   RECT *newWindowRect, RECT *oldWindowRect,
49                                   RECT *oldClientRect, WINDOWPOS *winpos,
50                                   RECT *newClientRect );
51 extern LONG WINPOS_HandleWindowPosChanging16(struct tagWND *wndPtr, struct tagWINDOWPOS16 *winpos);
52 extern LONG WINPOS_HandleWindowPosChanging(struct tagWND *wndPtr, WINDOWPOS *winpos);
53 extern INT16 WINPOS_WindowFromPoint( struct tagWND* scopeWnd, POINT16 pt, struct tagWND **ppWnd );
54 extern void WINPOS_CheckInternalPos( struct tagWND* wndPtr );
55 extern BOOL WINPOS_ActivateOtherWindow(struct tagWND* pWnd);
56 extern BOOL WINPOS_CreateInternalPosAtom(void);
57
58 #endif  /* __WINE_WINPOS_H */