76 lines
1.8 KiB
C
76 lines
1.8 KiB
C
/*
|
|
* Dialog definitions
|
|
*
|
|
* Copyright 1993 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef DIALOG_H
|
|
#define DIALOG_H
|
|
|
|
#include "windows.h"
|
|
|
|
extern BOOL DIALOG_Init(void);
|
|
extern HWND DIALOG_GetFirstTabItem( HWND hwndDlg );
|
|
extern int DialogBoxIndirectPtr( HINSTANCE hInst, LPCSTR dlgTemplate,
|
|
HWND owner, WNDPROC dlgProc);
|
|
|
|
#pragma pack(1)
|
|
|
|
/* Dialog info structure.
|
|
* This structure is stored into the window extra bytes (cbWndExtra).
|
|
* sizeof(DIALOGINFO) must be <= DLGWINDOWEXTRA (=30).
|
|
*/
|
|
typedef struct
|
|
{
|
|
LONG msgResult; /* Result of EndDialog() / Default button id */
|
|
WNDPROC dlgProc; /* Dialog procedure */
|
|
LONG userInfo; /* User information (for DWL_USER) */
|
|
HWND hwndFocus; /* Current control with focus */
|
|
HFONT hUserFont; /* Dialog font */
|
|
HMENU hMenu; /* Dialog menu */
|
|
WORD xBaseUnit; /* Dialog units (depends on the font) */
|
|
WORD yBaseUnit;
|
|
WORD fEnd; /* EndDialog() called for this dialog */
|
|
HANDLE hDialogHeap;
|
|
} DIALOGINFO;
|
|
|
|
|
|
/* Dialog template header */
|
|
typedef struct
|
|
{
|
|
DWORD style;
|
|
BYTE nbItems WINE_PACKED;
|
|
WORD x WINE_PACKED;
|
|
WORD y WINE_PACKED;
|
|
WORD cx WINE_PACKED;
|
|
WORD cy WINE_PACKED;
|
|
} DLGTEMPLATEHEADER;
|
|
|
|
|
|
/* Dialog control header */
|
|
typedef struct
|
|
{
|
|
WORD x;
|
|
WORD y;
|
|
WORD cx;
|
|
WORD cy;
|
|
WORD id;
|
|
DWORD style WINE_PACKED;
|
|
} DLGCONTROLHEADER;
|
|
|
|
|
|
/* Dialog template */
|
|
typedef struct
|
|
{
|
|
DLGTEMPLATEHEADER * header;
|
|
unsigned char * menuName;
|
|
LPSTR className;
|
|
LPSTR caption;
|
|
WORD pointSize;
|
|
LPSTR faceName;
|
|
} DLGTEMPLATE;
|
|
|
|
#pragma pack(4)
|
|
|
|
#endif /* DIALOG_H */
|