wine/include/dialog.h

44 lines
1.1 KiB
C

/*
* Dialog definitions
*
* Copyright 1993 Alexandre Julliard
*/
#ifndef __WINE_DIALOG_H
#define __WINE_DIALOG_H
#include "winproc.h"
/* Dialog info structure.
* This structure is stored into the window extra bytes (cbWndExtra).
* sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
*/
#include "pshpack1.h"
typedef struct
{
INT msgResult; /* +00 Last message result */
HWINDOWPROC dlgProc; /* +04 Dialog procedure */
LONG userInfo; /* +08 User information (for DWL_USER) */
/* implementation-dependent part */
HWND16 hwndFocus; /* Current control with focus */
HFONT16 hUserFont; /* Dialog font */
HMENU16 hMenu; /* Dialog menu */
UINT16 xBaseUnit; /* Dialog units (depends on the font) */
UINT16 yBaseUnit;
INT idResult; /* EndDialog() result / default pushbutton ID */
UINT16 flags; /* EndDialog() called for this dialog */
HGLOBAL16 hDialogHeap;
} DIALOGINFO;
#include "poppack.h"
#define DF_END 0x0001
extern BOOL DIALOG_Init(void);
#endif /* __WINE_DIALOG_H */