4 * Copyright 1993 Alexandre Julliard
7 #ifndef __WINE_DIALOG_H
8 #define __WINE_DIALOG_H
12 /* Dialog info structure.
13 * This structure is stored into the window extra bytes (cbWndExtra).
14 * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
21 INT msgResult; /* +00 Last message result */
22 HWINDOWPROC dlgProc; /* +04 Dialog procedure */
23 LONG userInfo; /* +08 User information (for DWL_USER) */
25 /* implementation-dependent part */
27 HWND16 hwndFocus; /* Current control with focus */
28 HFONT16 hUserFont; /* Dialog font */
29 HMENU16 hMenu; /* Dialog menu */
30 UINT16 xBaseUnit; /* Dialog units (depends on the font) */
32 INT idResult; /* EndDialog() result / default pushbutton ID */
33 UINT16 flags; /* EndDialog() called for this dialog */
34 HGLOBAL16 hDialogHeap;
41 extern BOOL DIALOG_Init(void);
42 extern HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
43 BOOL win32Template, HWND owner,
44 DLGPROC16 dlgProc, LPARAM param,
45 WINDOWPROCTYPE procType );
46 extern INT DIALOG_DoDialogBox( HWND hwnd, HWND owner );
48 #endif /* __WINE_DIALOG_H */