mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[PSDK]
* Update commdlg.h. svn path=/trunk/; revision=60536
This commit is contained in:
parent
f5a5066918
commit
e54abc2fe5
1 changed files with 55 additions and 0 deletions
|
@ -195,6 +195,12 @@ extern "C" {
|
|||
#define CD_LBSELADD 2
|
||||
#define DN_DEFAULTPRN 1
|
||||
|
||||
#define PD_RESULT_CANCEL 0
|
||||
#define PD_RESULT_PRINT 1
|
||||
#define PD_RESULT_APPLY 2
|
||||
|
||||
#define START_PAGE_GENERAL 0xffffffff
|
||||
|
||||
#ifndef SNDMSG
|
||||
#ifdef __cplusplus
|
||||
#define SNDMSG ::SendMessage
|
||||
|
@ -378,6 +384,21 @@ typedef struct tagOFNW {
|
|||
DWORD FlagsEx;
|
||||
#endif
|
||||
} OPENFILENAMEW,*LPOPENFILENAMEW;
|
||||
|
||||
|
||||
#ifndef CDSIZEOF_STRUCT
|
||||
#define CDSIZEOF_STRUCT(type,field) ((INT_PTR)&(((type *)0)->field) + sizeof(((type*)0)->field))
|
||||
#endif
|
||||
|
||||
#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
|
||||
#define OPENFILENAME_SIZE_VERSION_400W CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)
|
||||
|
||||
#ifdef UNICODE
|
||||
#define OPENFILENAME_SIZE_VERSION_400 OPENFILENAME_SIZE_VERSION_400W
|
||||
#else
|
||||
#define OPENFILENAME_SIZE_VERSION_400 OPENFILENAME_SIZE_VERSION_400A
|
||||
#endif
|
||||
|
||||
typedef struct _OFNOTIFYA {
|
||||
NMHDR hdr;
|
||||
LPOPENFILENAMEA lpOFN;
|
||||
|
@ -533,6 +554,40 @@ typedef struct tagPDEXW {
|
|||
} PRINTDLGEXW, *LPPRINTDLGEXW;
|
||||
#endif /* WINVER >= 0x0500 */
|
||||
|
||||
#ifdef STDMETHOD
|
||||
|
||||
DEFINE_GUID(IID_IPrintDialogCallback, 0x5852a2c3,0x6530,0x11d1,0xb6,0xa3,0x00,0x00,0xf8,0x75,0x7b,0xf9);
|
||||
#define INTERFACE IPrintDialogCallback
|
||||
DECLARE_INTERFACE_(IPrintDialogCallback,IUnknown)
|
||||
{
|
||||
/*** IUnknown methods ***/
|
||||
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID,void **) PURE;
|
||||
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
||||
/*** IPrintDialogCallback methods ***/
|
||||
STDMETHOD(InitDone)(THIS) PURE;
|
||||
STDMETHOD(SelectionChange)(THIS) PURE;
|
||||
STDMETHOD(HandleMessage)(THIS_ HWND,UINT,WPARAM,LPARAM,LRESULT *) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
DEFINE_GUID(IID_IPrintDialogServices, 0x509aaeda,0x5639,0x11d1,0xb6,0xa1,0x00,0x00,0xf8,0x75,0x7b,0xf9);
|
||||
#define INTERFACE IPrintDialogServices
|
||||
DECLARE_INTERFACE_(IPrintDialogServices,IUnknown)
|
||||
{
|
||||
/*** IUnknown methods ***/
|
||||
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID,void **) PURE;
|
||||
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
||||
/*** IPrintDialogServices methods ***/
|
||||
STDMETHOD(GetCurrentDevMode)(THIS_ LPDEVMODEW,UINT *) PURE;
|
||||
STDMETHOD(GetCurrentPrinterName)(THIS_ LPWSTR,UINT *) PURE;
|
||||
STDMETHOD(GetCurrentPortName)(THIS_ LPWSTR,UINT *) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
#endif /* STDMETHOD */
|
||||
|
||||
BOOL WINAPI ChooseColorA(LPCHOOSECOLORA);
|
||||
BOOL WINAPI ChooseColorW(LPCHOOSECOLORW);
|
||||
BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
|
||||
|
|
Loading…
Reference in a new issue