Release 950918
[wine/testsucceed.git] / include / dialog.h
blobaca9adc8ab9b71a7ad36d3f86830af5532fc48a3
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 #ifndef WINELIB
16 #pragma pack(1)
17 #endif
19 /* Dialog info structure.
20 * This structure is stored into the window extra bytes (cbWndExtra).
21 * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
23 typedef struct
25 LONG msgResult; /* Result of EndDialog() / Default button id */
26 WNDPROC dlgProc; /* Dialog procedure */
27 LONG userInfo; /* User information (for DWL_USER) */
28 HWND hwndFocus; /* Current control with focus */
29 HFONT hUserFont; /* Dialog font */
30 HMENU hMenu; /* Dialog menu */
31 WORD xBaseUnit; /* Dialog units (depends on the font) */
32 WORD yBaseUnit;
33 WORD fEnd; /* EndDialog() called for this dialog */
34 HANDLE hDialogHeap;
35 } DIALOGINFO;
38 /* Dialog template header */
39 typedef struct
41 DWORD style;
42 BYTE nbItems WINE_PACKED;
43 WORD x WINE_PACKED;
44 WORD y WINE_PACKED;
45 WORD cx WINE_PACKED;
46 WORD cy WINE_PACKED;
47 } DLGTEMPLATEHEADER;
50 /* Dialog control header */
51 typedef struct
53 WORD x;
54 WORD y;
55 WORD cx;
56 WORD cy;
57 WORD id;
58 DWORD style WINE_PACKED;
59 } DLGCONTROLHEADER;
62 /* Dialog template */
63 typedef struct
65 DLGTEMPLATEHEADER header;
66 SEGPTR menuName;
67 SEGPTR className;
68 SEGPTR caption;
69 WORD pointSize;
70 SEGPTR faceName;
71 } DLGTEMPLATE;
73 #ifndef WINELIB
74 #pragma pack(4)
75 #endif
77 #endif /* DIALOG_H */