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