Release 960516
[wine.git] / include / dialog.h
blobe835b5b141ebd214d528759da4f83954ebf39470
1 /*
2 * Dialog definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef DIALOG_H
8 #define DIALOG_H
10 #include "windows.h"
12 extern BOOL DIALOG_Init(void);
13 extern HWND DIALOG_GetFirstTabItem( HWND hwndDlg );
15 #pragma pack(1)
17 /* Dialog info structure.
18 * This structure is stored into the window extra bytes (cbWndExtra).
19 * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
21 typedef struct
23 LONG msgResult; /* Result of EndDialog() / Default button id */
24 WNDPROC dlgProc; /* Dialog procedure */
25 LONG userInfo; /* User information (for DWL_USER) */
26 HWND hwndFocus; /* Current control with focus */
27 HFONT hUserFont; /* Dialog font */
28 HMENU hMenu; /* Dialog menu */
29 WORD xBaseUnit; /* Dialog units (depends on the font) */
30 WORD yBaseUnit;
31 WORD fEnd; /* EndDialog() called for this dialog */
32 HANDLE hDialogHeap;
33 } DIALOGINFO;
36 /* Dialog control header */
37 typedef struct
39 DWORD style;
40 WORD x;
41 WORD y;
42 WORD cx;
43 WORD cy;
44 WORD id;
45 } DLGCONTROLHEADER;
48 /* Dialog template */
49 typedef struct
51 DWORD style;
52 WORD nbItems;
53 WORD x;
54 WORD y;
55 WORD cx;
56 WORD cy;
57 SEGPTR menuName;
58 SEGPTR className;
59 SEGPTR caption;
60 WORD pointSize;
61 SEGPTR faceName;
62 } DLGTEMPLATE;
64 #pragma pack(4)
66 extern WORD xBaseUnit,yBaseUnit;
67 int DIALOG_DoDialogBox( HWND hwnd, HWND owner );
69 #endif /* DIALOG_H */