* include/olectl.h (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,

LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
	LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
	OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
	OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF,LPPOINTF, CONTROLINFO,
	LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
	CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
	PROPPAGEINFO, LPPROPPAGEINFO): Remove from here ...
	* include/ocidl.h: (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,
	LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
	LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
	OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
	OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF, LPPOINTF, CONTROLINFO,
	LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
	CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
	PROPPAGEINFO, LPPROPPAGEINFO): ... to here, for consistency
	with documentation.
	* include/olectl.h: Do #include <ocidl.h>.
	* include/ocidl.h: Don't #include <olectl.h>.
This commit is contained in:
Danny Smith 2003-09-13 12:05:08 +00:00
parent 77780db3bd
commit 52bce3938f
3 changed files with 93 additions and 63 deletions

View File

@ -1,3 +1,25 @@
2003-09-13 Danny Smith <dannysmith@users.sourceforge.net>
* include/olectl.h (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,
LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF,LPPOINTF, CONTROLINFO,
LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
PROPPAGEINFO, LPPROPPAGEINFO): Remove from here ...
* include/ocidl.h: (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,
LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF, LPPOINTF, CONTROLINFO,
LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
PROPPAGEINFO, LPPROPPAGEINFO): ... to here, for consistency
with documentation.
* include/olectl.h: Do #include <ocidl.h>.
* include/ocidl.h: Don't #include <olectl.h>.
2003-09-13 Danny Smith <dannysmith@users.sourceforge.net> 2003-09-13 Danny Smith <dannysmith@users.sourceforge.net>
* include/winuser.h (_WIN32_WINNT, _WIN32_WINDOWS, WINVER): * include/winuser.h (_WIN32_WINNT, _WIN32_WINDOWS, WINVER):

View File

@ -1,11 +1,36 @@
#ifndef _OCIDL_H #ifndef _OCIDL_H
#define _OCIDL_H #define _OCIDL_H
#if __GNUC__ >= 3
#pragma GCC system_header
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include <ole2.h> #include <ole2.h>
#include <olectl.h>
typedef interface IErrorLog *LPERRORLOG;
typedef interface IPropertyBag *LPPROPERTYBAG;
typedef interface IEnumConnections *LPENUMCONNECTIONS;
typedef interface IConnectionPoint *LPCONNECTIONPOINT;
typedef interface IEnumConnectionPoints *LPENUMCONNECTIONPOINTS;
typedef interface IPropertyPageSite *LPPROPERTYPAGESITE;
typedef interface IFont *LPFONT;
typedef interface IFontDisp *LPFONTDISP;
#ifndef OLE2ANSI
typedef TEXTMETRICW TEXTMETRICOLE;
#else
typedef TEXTMETRIC TEXTMETRICOLE;
#endif
typedef TEXTMETRICOLE *LPTEXTMETRICOLE;
typedef DWORD OLE_COLOR;
typedef UINT OLE_HANDLE;
typedef long OLE_XPOS_HIMETRIC;
typedef long OLE_YPOS_HIMETRIC;
typedef long OLE_XSIZE_HIMETRIC;
typedef long OLE_YSIZE_HIMETRIC;
typedef enum tagREADYSTATE { typedef enum tagREADYSTATE {
READYSTATE_UNINITIALIZED = 0, READYSTATE_UNINITIALIZED = 0,
@ -14,6 +39,45 @@ typedef enum tagREADYSTATE {
READYSTATE_INTERACTIVE = 3, READYSTATE_INTERACTIVE = 3,
READYSTATE_COMPLETE = 4 READYSTATE_COMPLETE = 4
} READYSTATE; } READYSTATE;
typedef struct tagPOINTF {
float x;
float y;
} POINTF,*LPPOINTF;
typedef struct tagCONTROLINFO {
ULONG cb;
HACCEL hAccel;
USHORT cAccel;
DWORD dwFlags;
} CONTROLINFO,*LPCONTROLINFO;
typedef struct tagCONNECTDATA {
LPUNKNOWN pUnk;
DWORD dwCookie;
} CONNECTDATA,*LPCONNECTDATA;
typedef struct tagLICINFO {
long cbLicInfo;
BOOL fRuntimeKeyAvail;
BOOL fLicVerified;
} LICINFO,*LPLICINFO;
typedef struct tagCAUUID {
ULONG cElems;
GUID *pElems;
} CAUUID,*LPCAUUID;
typedef struct tagCALPOLESTR {
ULONG cElems;
LPOLESTR *pElems;
} CALPOLESTR,*LPCALPOLESTR;
typedef struct tagCADWORD {
ULONG cElems;
DWORD *pElems;
} CADWORD,*LPCADWORD;
typedef struct tagPROPPAGEINFO {
ULONG cb;
LPOLESTR pszTitle;
SIZE size;
LPOLESTR pszDocString;
LPOLESTR pszHelpFile;
DWORD dwHelpContext;
} PROPPAGEINFO,*LPPROPPAGEINFO;
EXTERN_C const IID IID_IOleControl; EXTERN_C const IID IID_IOleControl;
#undef INTERFACE #undef INTERFACE

View File

@ -1,6 +1,6 @@
#ifndef _OLECTL_H #ifndef _OLECTL_H
#define _OLECTL_H #define _OLECTL_H
#if __GNUC__ >=3 #if __GNUC__ >= 3
#pragma GCC system_header #pragma GCC system_header
#endif #endif
@ -8,6 +8,7 @@
extern "C" { extern "C" {
#endif #endif
#include <ocidl.h>
#include <olectlid.h> #include <olectlid.h>
#define STD_CTL_SCODE(n) MAKE_SCODE(SEVERITY_ERROR,FACILITY_CONTROL,n) #define STD_CTL_SCODE(n) MAKE_SCODE(SEVERITY_ERROR,FACILITY_CONTROL,n)
@ -224,18 +225,9 @@ extern "C" {
#define DISPID_PICT_HEIGHT 5 #define DISPID_PICT_HEIGHT 5
#define DISPID_PICT_RENDER 6 #define DISPID_PICT_RENDER 6
#pragma pack(push,8)
#ifndef OLE2ANSI
typedef TEXTMETRICW TEXTMETRICOLE;
#else
typedef TEXTMETRIC TEXTMETRICOLE;
#endif
typedef TEXTMETRICOLE *LPTEXTMETRICOLE;
typedef interface IOleControl *LPOLECONTROL; typedef interface IOleControl *LPOLECONTROL;
typedef interface IOleControlSite *LPOLECONTROLSITE; typedef interface IOleControlSite *LPOLECONTROLSITE;
typedef interface ISimpleFrameSite *LPSIMPLEFRAMESITE; typedef interface ISimpleFrameSite *LPSIMPLEFRAMESITE;
typedef interface IErrorLog *LPERRORLOG;
typedef interface IPropertyBag *LPPROPERTYBAG;
typedef interface IPersistPropertyBag *LPPERSISTPROPERTYBAG; typedef interface IPersistPropertyBag *LPPERSISTPROPERTYBAG;
typedef interface IPersistStreamInit *LPPERSISTSTREAMINIT; typedef interface IPersistStreamInit *LPPERSISTSTREAMINIT;
typedef interface IPersistMemory *LPPERSISTMEMORY; typedef interface IPersistMemory *LPPERSISTMEMORY;
@ -243,68 +235,28 @@ typedef interface IPropertyNotifySink* LPPROPERTYNOTIFYSINK;
typedef interface IProvideClassInfo *LPPROVIDECLASSINFO; typedef interface IProvideClassInfo *LPPROVIDECLASSINFO;
typedef interface IProvideClassInfo2 *LPPROVIDECLASSINFO2; typedef interface IProvideClassInfo2 *LPPROVIDECLASSINFO2;
typedef interface IConnectionPointContainer *LPCONNECTIONPOINTCONTAINER; typedef interface IConnectionPointContainer *LPCONNECTIONPOINTCONTAINER;
typedef interface IEnumConnectionPoints *LPENUMCONNECTIONPOINTS;
typedef interface IConnectionPoint *LPCONNECTIONPOINT;
typedef interface IEnumConnections *LPENUMCONNECTIONS;
typedef interface IClassFactory2 *LPCLASSFACTORY2; typedef interface IClassFactory2 *LPCLASSFACTORY2;
typedef interface ISpecifyPropertyPages *LPSPECIFYPROPERTYPAGES; typedef interface ISpecifyPropertyPages *LPSPECIFYPROPERTYPAGES;
typedef interface IPerPropertyBrowsing *LPPERPROPERTYBROWSING; typedef interface IPerPropertyBrowsing *LPPERPROPERTYBROWSING;
typedef interface IPropertyPageSite *LPPROPERTYPAGESITE;
typedef interface IPropertyPage *LPPROPERTYPAGE; typedef interface IPropertyPage *LPPROPERTYPAGE;
typedef interface IPropertyPage2 *LPPROPERTYPAGE2; typedef interface IPropertyPage2 *LPPROPERTYPAGE2;
typedef interface IFont *LPFONT;
typedef interface IFontDisp *LPFONTDISP;
typedef interface IPicture *LPPICTURE; typedef interface IPicture *LPPICTURE;
typedef interface IPictureDisp *LPPICTUREDISP; typedef interface IPictureDisp *LPPICTUREDISP;
typedef DWORD OLE_COLOR;
typedef long OLE_XPOS_PIXELS; typedef long OLE_XPOS_PIXELS;
typedef long OLE_YPOS_PIXELS; typedef long OLE_YPOS_PIXELS;
typedef long OLE_XSIZE_PIXELS; typedef long OLE_XSIZE_PIXELS;
typedef long OLE_YSIZE_PIXELS; typedef long OLE_YSIZE_PIXELS;
typedef long OLE_XPOS_HIMETRIC;
typedef long OLE_YPOS_HIMETRIC;
typedef long OLE_XSIZE_HIMETRIC;
typedef long OLE_YSIZE_HIMETRIC;
typedef float OLE_XPOS_CONTAINER; typedef float OLE_XPOS_CONTAINER;
typedef float OLE_YPOS_CONTAINER; typedef float OLE_YPOS_CONTAINER;
typedef float OLE_XSIZE_CONTAINER; typedef float OLE_XSIZE_CONTAINER;
typedef float OLE_YSIZE_CONTAINER;
typedef VARIANT_BOOL OLE_OPTEXCLUSIVE; typedef VARIANT_BOOL OLE_OPTEXCLUSIVE;
typedef VARIANT_BOOL OLE_CANCELBOOL; typedef VARIANT_BOOL OLE_CANCELBOOL;
typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL; typedef VARIANT_BOOL OLE_ENABLEDEFAULTBOOL;
typedef UINT OLE_HANDLE;
#pragma pack(push,8)
typedef enum { triUnchecked,triChecked1,triGray } OLE_TRISTATE; typedef enum { triUnchecked,triChecked1,triGray } OLE_TRISTATE;
typedef struct tagPOINTF {
float x;
float y;
} POINTF,*LPPOINTF;
typedef struct tagCONTROLINFO {
ULONG cb;
HACCEL hAccel;
USHORT cAccel;
DWORD dwFlags;
} CONTROLINFO,*LPCONTROLINFO;
typedef struct tagCONNECTDATA {
LPUNKNOWN pUnk;
DWORD dwCookie;
} CONNECTDATA,*LPCONNECTDATA;
typedef struct tagLICINFO {
long cbLicInfo;
BOOL fRuntimeKeyAvail;
BOOL fLicVerified;
} LICINFO,*LPLICINFO;
typedef struct tagCAUUID {
ULONG cElems;
GUID *pElems;
} CAUUID,*LPCAUUID;
typedef struct tagCALPOLESTR {
ULONG cElems;
LPOLESTR *pElems;
} CALPOLESTR,*LPCALPOLESTR;
typedef struct tagCADWORD {
ULONG cElems;
DWORD *pElems;
} CADWORD,*LPCADWORD;
typedef struct tagOCPFIPARAMS { typedef struct tagOCPFIPARAMS {
ULONG cbStructSize; ULONG cbStructSize;
HWND hWndOwner; HWND hWndOwner;
@ -318,14 +270,6 @@ typedef struct tagOCPFIPARAMS {
LCID lcid; LCID lcid;
DISPID dispidInitialProperty; DISPID dispidInitialProperty;
} OCPFIPARAMS,*LPOCPFIPARAMS; } OCPFIPARAMS,*LPOCPFIPARAMS;
typedef struct tagPROPPAGEINFO {
ULONG cb;
LPOLESTR pszTitle;
SIZE size;
LPOLESTR pszDocString;
LPOLESTR pszHelpFile;
DWORD dwHelpContext;
} PROPPAGEINFO,*LPPROPPAGEINFO;
typedef struct tagFONTDESC { typedef struct tagFONTDESC {
UINT cbSizeofstruct; UINT cbSizeofstruct;
LPOLESTR lpstrName; LPOLESTR lpstrName;