Made request tracing more robust against bogus lengths.
[wine.git] / include / dialog.h
blob0932681f91da831f686ede8f956a0792f6bbd9bb
1 /*
2 * Dialog definitions
4 * Copyright 1993 Alexandre Julliard
5 */
7 #ifndef __WINE_DIALOG_H
8 #define __WINE_DIALOG_H
10 #include "winproc.h"
12 /* Dialog info structure.
13 * This structure is stored into the window extra bytes (cbWndExtra).
14 * sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
17 #include "pshpack1.h"
19 typedef struct
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) */
31 UINT16 yBaseUnit;
32 INT idResult; /* EndDialog() result / default pushbutton ID */
33 UINT16 flags; /* EndDialog() called for this dialog */
34 HGLOBAL16 hDialogHeap;
35 } DIALOGINFO;
37 #include "poppack.h"
39 #define DF_END 0x0001
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 */