Large-scale renaming of all Win32 functions and types to use the
[wine] / include / dialog.h
1 /*
2  * Dialog definitions
3  *
4  * Copyright 1993 Alexandre Julliard
5  */
6
7 #ifndef __WINE_DIALOG_H
8 #define __WINE_DIALOG_H
9
10 #include "winproc.h"
11
12   /* Dialog info structure.
13    * This structure is stored into the window extra bytes (cbWndExtra).
14    * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
15    */
16
17 #pragma pack(1)
18
19 typedef struct
20 {
21     INT       msgResult;   /* +00 Last message result */
22     HWINDOWPROC dlgProc;     /* +04 Dialog procedure */
23     LONG        userInfo;    /* +08 User information (for DWL_USER) */
24
25     /* implementation-dependent part */
26
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) */
31     UINT16      yBaseUnit;
32     INT idResult;    /* EndDialog() result / default pushbutton ID */
33     UINT16      flags;       /* EndDialog() called for this dialog */
34     HGLOBAL16   hDialogHeap;
35 } DIALOGINFO;
36
37 #pragma pack(4)
38
39 #define DF_END  0x0001
40
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 );
47
48 #endif  /* __WINE_DIALOG_H */