Fixed 0/-1 mixup for indicating no mapping handle.
[wine] / include / mdi.h
1 /* MDI.H
2  *
3  * Copyright 1994, Bob Amstadt
4  *           1995  Alex Korobka
5  *
6  * MDI structure definitions.
7  */
8
9 #ifndef __WINE_MDI_H
10 #define __WINE_MDI_H
11
12 #include "windef.h"
13
14 #define MDI_MAXLISTLENGTH       0x40
15 #define MDI_MAXTITLELENGTH      0xA1
16
17 #define MDI_NOFRAMEREPAINT      0
18 #define MDI_REPAINTFRAMENOW     1
19 #define MDI_REPAINTFRAME        2
20
21 #define WM_MDICALCCHILDSCROLL   0x10AC /* this is exactly what Windows uses */
22
23 /* "More Windows..." definitions */
24 #define MDI_MOREWINDOWSLIMIT    9       /* after this number of windows, a "More Windows..." 
25                                            option will appear under the Windows menu */
26 #define MDI_IDC_LISTBOX         100
27 #define MDI_IDS_MOREWINDOWS     13
28
29 extern LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message, 
30                                         WPARAM wParam, LPARAM lParam );
31
32 typedef struct 
33 {
34     UINT      nActiveChildren;
35     HWND      hwndChildMaximized;
36     HWND      hwndActiveChild;
37     HMENU     hWindowMenu;
38     UINT      idFirstChild;
39     LPWSTR    frameTitle;
40     UINT      nTotalCreated;
41     UINT      mdiFlags;
42     UINT      sbRecalc;   /* SB_xxx flags for scrollbar fixup */
43     HWND      self;
44 } MDICLIENTINFO;
45
46 extern HWND  MDI_CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,
47                                 INT,INT,HWND,HINSTANCE,LPARAM);
48 extern HWND  MDI_CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,
49                                 INT,INT,HWND,HINSTANCE,LPARAM);
50 #endif /* __WINE_MDI_H */
51