source: trunk/src/user32/mdi.h@ 8266

Last change on this file since 8266 was 6762, checked in by sandervl, 24 years ago

ported the Wine MDI control + some menu fixes

File size: 1.6 KB
Line 
1/* $Id: mdi.h,v 1.1 2001-09-19 15:39:48 sandervl Exp $ */
2
3/* MDI.H
4 *
5 * Copyright 1994, Bob Amstadt
6 * 1995 Alex Korobka
7 *
8 * MDI structure definitions.
9 */
10
11#ifndef __WINE_MDI_H
12#define __WINE_MDI_H
13
14#include "windef.h"
15
16#define MDICLIENTCLASSNAMEA "MDICLIENT"
17#define MDICLIENTCLASSNAMEW L"MDICLIENT"
18
19#define MDI_MAXLISTLENGTH 0x40
20#define MDI_MAXTITLELENGTH 0xA1
21
22#define MDI_NOFRAMEREPAINT 0
23#define MDI_REPAINTFRAMENOW 1
24#define MDI_REPAINTFRAME 2
25
26#define WM_MDICALCCHILDSCROLL 0x10AC /* this is exactly what Windows uses */
27
28/* "More Windows..." definitions */
29#define MDI_MOREWINDOWSLIMIT 9 /* after this number of windows, a "More Windows..."
30 option will appear under the Windows menu */
31#define MDI_IDC_LISTBOX 100
32#define MDI_IDS_MOREWINDOWS 13
33
34#define MDIF_NEEDUPDATE 0x0001
35
36LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
37LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
38
39typedef struct
40{
41 UINT nActiveChildren;
42 HWND hwndChildMaximized;
43 HWND hwndActiveChild;
44 HMENU hWindowMenu;
45 UINT idFirstChild;
46 LPWSTR frameTitle;
47 UINT nTotalCreated;
48 UINT mdiFlags;
49 UINT sbRecalc; /* SB_xxx flags for scrollbar fixup */
50} MDICLIENTINFO;
51
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57INT SCROLL_SetNCSbState(HWND hwnd, int vMin, int vMax, int vPos,
58 int hMin, int hMax, int hPos);
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* __WINE_MDI_H */
65
Note: See TracBrowser for help on using the repository browser.