Release 961208
[wine.git] / include / dialog.h
blobeb95f2f9c24f5980f33456d937f591f4a7c8421c
1 /*
2 * Dialog definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef DIALOG_H
8 #define DIALOG_H
10 #include "windows.h"
11 #include "winproc.h"
13 /* Dialog info structure.
14 * This structure is stored into the window extra bytes (cbWndExtra).
15 * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
18 #pragma pack(1)
20 typedef struct
22 INT32 msgResult; /* +00 Last message result */
23 HWINDOWPROC dlgProc; /* +04 Dialog procedure */
24 LONG userInfo; /* +08 User information (for DWL_USER) */
26 /* implementation-dependent part */
28 HWND16 hwndFocus; /* Current control with focus */
29 HFONT16 hUserFont; /* Dialog font */
30 HMENU16 hMenu; /* Dialog menu */
31 WORD xBaseUnit; /* Dialog units (depends on the font) */
32 WORD yBaseUnit;
33 INT32 idResult; /* EndDialog() result / default pushbutton ID */
34 WORD fEnd; /* EndDialog() called for this dialog */
35 HGLOBAL16 hDialogHeap;
36 } DIALOGINFO;
38 #pragma pack(4)
40 extern BOOL32 DIALOG_Init(void);
42 #endif /* DIALOG_H */