Release 941122
[wine/multimedia.git] / include / dialog.h
blob1c9cf342840cac6abcb649563c2e037177fb24d2
1 /*
2 * Dialog definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef DIALOG_H
8 #define DIALOG_H
10 #include "windows.h"
12 #pragma pack(1)
14 /* Dialog info structure.
15 * This structure is stored into the window extra bytes (cbWndExtra).
16 * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
18 typedef struct
20 LONG msgResult; /* Result of EndDialog() / Default button id */
21 WNDPROC dlgProc; /* Dialog procedure */
22 LONG userInfo; /* User information (for DWL_USER) */
23 HWND hwndFocus; /* Current control with focus */
24 HFONT hUserFont; /* Dialog font */
25 HMENU hMenu; /* Dialog menu */
26 WORD xBaseUnit; /* Dialog units (depends on the font) */
27 WORD yBaseUnit;
28 WORD fEnd; /* EndDialog() called for this dialog */
29 HANDLE hDialogHeap;
30 } DIALOGINFO;
33 /* Dialog template header */
34 typedef struct
36 DWORD style;
37 BYTE nbItems WINE_PACKED;
38 WORD x WINE_PACKED;
39 WORD y WINE_PACKED;
40 WORD cx WINE_PACKED;
41 WORD cy WINE_PACKED;
42 } DLGTEMPLATEHEADER;
45 /* Dialog control header */
46 typedef struct
48 WORD x;
49 WORD y;
50 WORD cx;
51 WORD cy;
52 WORD id;
53 DWORD style WINE_PACKED;
54 } DLGCONTROLHEADER;
57 /* Dialog template */
58 typedef struct
60 DLGTEMPLATEHEADER * header;
61 unsigned char * menuName;
62 LPSTR className;
63 LPSTR caption;
64 WORD pointSize;
65 LPSTR faceName;
66 } DLGTEMPLATE;
68 #pragma pack(4)
70 #endif /* DIALOG_H */