blob: 2ced23a50d923e13d04688a2b2b50a2410ad7bca [file] [log] [blame]
Alexandre Julliard8d24ae61994-04-05 21:42:43 +00001/* MDI.H
2 *
3 * Copyright 1994, Bob Amstadt
Alexandre Julliardd4719651995-12-12 18:49:11 +00004 * 1995 Alex Korobka
Alexandre Julliard8d24ae61994-04-05 21:42:43 +00005 *
6 * MDI structure definitions.
7 */
8
Alexandre Julliardc6c09441997-01-12 18:32:19 +00009#ifndef __WINE_MDI_H
10#define __WINE_MDI_H
Alexandre Julliard8d24ae61994-04-05 21:42:43 +000011
Jim Aston2e1cafa1999-03-14 16:35:05 +000012#include "windef.h"
Alexandre Julliard8d24ae61994-04-05 21:42:43 +000013
Alexandre Julliardd4719651995-12-12 18:49:11 +000014#define MDI_MAXLISTLENGTH 0x40
Alexandre Julliard7e56f681996-01-31 19:02:28 +000015#define MDI_MAXTITLELENGTH 0xA1
16
17#define MDI_NOFRAMEREPAINT 0
18#define MDI_REPAINTFRAMENOW 1
19#define MDI_REPAINTFRAME 2
Alexandre Julliardd4719651995-12-12 18:49:11 +000020
21#define WM_MDICALCCHILDSCROLL 0x10AC /* this is exactly what Windows uses */
22
Alexandre Julliarda3960291999-02-26 11:11:13 +000023extern LRESULT WINAPI MDIClientWndProc( HWND hwnd, UINT message,
24 WPARAM wParam, LPARAM lParam );
Alexandre Julliard234bc241994-12-10 13:02:28 +000025
Alexandre Julliard8d24ae61994-04-05 21:42:43 +000026typedef struct
27{
Alexandre Julliarda3960291999-02-26 11:11:13 +000028 UINT nActiveChildren;
29 HWND hwndChildMaximized;
30 HWND hwndActiveChild;
31 HMENU hWindowMenu;
32 UINT idFirstChild;
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +000033 LPSTR frameTitle;
Alexandre Julliarda3960291999-02-26 11:11:13 +000034 UINT nTotalCreated;
35 UINT mdiFlags;
36 UINT sbRecalc; /* SB_xxx flags for scrollbar fixup */
37 HWND self;
Alexandre Julliard8d24ae61994-04-05 21:42:43 +000038} MDICLIENTINFO;
39
Alexandre Julliarda3960291999-02-26 11:11:13 +000040extern HWND MDI_CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,
41 INT,INT,HWND,HINSTANCE,LPARAM);
42extern HWND MDI_CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,
43 INT,INT,HWND,HINSTANCE,LPARAM);
Alexandre Julliardc6c09441997-01-12 18:32:19 +000044#endif /* __WINE_MDI_H */
Alexandre Julliard2ace16a1996-04-28 15:09:19 +000045