home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
OLECTL.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
16KB
|
475 lines
//----------------------------------------------------------------------------
// OleCtl.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: OleCtl.pas
//----------------------------------------------------------------------------
#ifndef OleCtlHPP
#define OleCtlHPP
//----------------------------------------------------------------------------
#include <OLE2.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Olectl
{
//-- type declarations -------------------------------------------------------
typedef tagTEXTMETRICW *PTextMetricOle;
typedef tagTEXTMETRICW TTextMetricOle;
typedef long TOleColor;
enum OLE_TRISTATE { triUnchecked, triChecked, triGray };
typedef long __stdcall (*TDLLRegisterServer)(void);
typedef long __stdcall (*TDLLUnregisterServer)(void);
typedef tagPOINTF *PPointF;
typedef tagPOINTF TPointF;
typedef tagCONTROLINFO *PControlInfo;
typedef tagCONTROLINFO TControlInfo;
class __declspec(delphiclass) IOleControl;
class __declspec(pascalimplementation) IOleControl : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall GetControlInfo(CONTROLINFO &ci) = 0;
virtual long __stdcall OnMnemonic(Windows::PMsg msg) = 0;
virtual long __stdcall OnAmbientPropertyChange(long dispid) = 0;
virtual long __stdcall FreezeEvents(DWord bFreeze) = 0;
public:
/* TObject.Create */ __fastcall IOleControl(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleControl(void) { }
};
class __declspec(delphiclass) IOleControlSite;
class __declspec(pascalimplementation) IOleControlSite : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall OnControlInfoChanged(void) = 0;
virtual long __stdcall LockInPlaceActive(DWord fLock) = 0;
virtual long __stdcall GetExtendedControl(Ole2::IDispatch* &disp) = 0;
virtual long __stdcall TransformCoords(POINT &ptlHimetric, POINTF &ptfContainer, long flags) = 0
;
virtual long __stdcall TranslateAccelerator(Windows::PMsg msg, long grfModifiers) = 0;
virtual long __stdcall OnFocus(DWord fGotFocus) = 0;
virtual long __stdcall ShowPropertyFrame(void) = 0;
public:
/* TObject.Create */ __fastcall IOleControlSite(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IOleControlSite(void) { }
};
class __declspec(delphiclass) ISimpleFrameSite;
class __declspec(pascalimplementation) ISimpleFrameSite : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall PreMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long &Cookie) = 0
;
virtual long __stdcall PostMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long Cookie) = 0
;
public:
/* TObject.Create */ __fastcall ISimpleFrameSite(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ISimpleFrameSite(void) { }
};
class __declspec(delphiclass) IPersistStreamInit;
class __declspec(pascalimplementation) IPersistStreamInit : public Ole2::IPersistStream
{
typedef Ole2::IPersistStream inherited;
public:
virtual long __stdcall InitNew(void) = 0;
public:
/* TObject.Create */ __fastcall IPersistStreamInit(void) : Ole2::IPersistStream() { }
/* TObject.Destroy */ __fastcall virtual ~IPersistStreamInit(void) { }
};
class __declspec(delphiclass) IPropertyNotifySink;
class __declspec(pascalimplementation) IPropertyNotifySink : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall OnChanged(long dispid) = 0;
virtual long __stdcall OnRequestEdit(long dispid) = 0;
public:
/* TObject.Create */ __fastcall IPropertyNotifySink(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IPropertyNotifySink(void) { }
};
class __declspec(delphiclass) IProvideClassInfo;
class __declspec(pascalimplementation) IProvideClassInfo : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall GetClassInfo(Ole2::ITypeInfo* &ti) = 0;
public:
/* TObject.Create */ __fastcall IProvideClassInfo(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IProvideClassInfo(void) { }
};
class __declspec(delphiclass) IConnectionPointContainer;
class __declspec(delphiclass) IEnumConnectionPoints;
class __declspec(delphiclass) IConnectionPoint;
class __declspec(pascalimplementation) IConnectionPointContainer : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall EnumConnectionPoints(IEnumConnectionPoints* &Enum) = 0;
virtual long __stdcall FindConnectionPoint(const GUID &iid, IConnectionPoint* &cp) = 0;
public:
/* TObject.Create */ __fastcall IConnectionPointContainer(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IConnectionPointContainer(void) { }
};
class __declspec(pascalimplementation) IEnumConnectionPoints : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumConnectionPoints* &Enum) = 0;
public:
/* TObject.Create */ __fastcall IEnumConnectionPoints(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumConnectionPoints(void) { }
};
class __declspec(delphiclass) IEnumConnections;
class __declspec(pascalimplementation) IConnectionPoint : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall GetConnectionInterface(GUID &iid) = 0;
virtual long __stdcall GetConnectionPointContainer(IConnectionPointContainer* &cpc) = 0;
virtual long __stdcall Advise(Ole2::IUnknown* unkSink, long &dwCookie) = 0;
virtual long __stdcall Unadvise(long dwCookie) = 0;
virtual long __stdcall EnumConnections(IEnumConnections* &Enum) = 0;
public:
/* TObject.Create */ __fastcall IConnectionPoint(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IConnectionPoint(void) { }
};
typedef tagCONNECTDATA *PConnectData;
typedef tagCONNECTDATA TConnectData;
class __declspec(pascalimplementation) IEnumConnections : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall Next(long celt, void *elt, Windows::PLongint pceltFetched) = 0;
virtual long __stdcall Skip(long celt) = 0;
virtual long __stdcall Reset(void) = 0;
virtual long __stdcall Clone(IEnumConnections* &Enum) = 0;
public:
/* TObject.Create */ __fastcall IEnumConnections(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IEnumConnections(void) { }
};
typedef tagLICINFO *PLicInfo;
typedef tagLICINFO TLicInfo;
class __declspec(delphiclass) IClassFactory2;
class __declspec(pascalimplementation) IClassFactory2 : public Ole2::IClassFactory
{
typedef Ole2::IClassFactory inherited;
public:
virtual long __stdcall GetLicInfo(LICINFO &licInfo) = 0;
virtual long __stdcall RequestLicKey(long dwResrved, wchar_t * &bstrKey) = 0;
virtual long __stdcall CreateInstanceLic(Ole2::IUnknown* unkOuter, Ole2::IUnknown* unkReserved, const
GUID &iid, wchar_t * bstrKey, void *vObject) = 0;
public:
/* TObject.Create */ __fastcall IClassFactory2(void) : Ole2::IClassFactory() { }
/* TObject.Destroy */ __fastcall virtual ~IClassFactory2(void) { }
};
typedef _GUID TGUIDList[65536];
typedef TGUIDList *PGUIDList;
struct TCAGUID
{
long cElems;
TGUIDList *pElems;
} ;
typedef TCAGUID *PCAGUID;
struct TCAPOleStr;
typedef TCAPOleStr *PCAPOleStr;
struct TCAPOleStr
{
long cElems;
Ole2::TOleStrList *pElems;
} ;
typedef long TLongintList[65536];
typedef TLongintList *PLongintList;
struct TCALongint
{
long cElems;
TLongintList *pElems;
} ;
typedef TCALongint *PCALongint;
typedef tagOCPFIPARAMS *POCPFIParams;
typedef tagOCPFIPARAMS TOCPFIParams;
typedef tagPROPPAGEINFO *PPropPageInfo;
typedef tagPROPPAGEINFO TPropPageInfo;
class __declspec(delphiclass) ISpecifyPropertyPages;
class __declspec(pascalimplementation) ISpecifyPropertyPages : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall GetPages(TCAGUID &pages) = 0;
public:
/* TObject.Create */ __fastcall ISpecifyPropertyPages(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~ISpecifyPropertyPages(void) { }
};
class __declspec(delphiclass) IPerPropertyBrowsing;
class __declspec(pascalimplementation) IPerPropertyBrowsing : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall GetDisplayString(long dispid, wchar_t * &bstr) = 0;
virtual long __stdcall MapPropertyToPage(long dispid, GUID &clsid) = 0;
virtual long __stdcall GetPredefinedStrings(long dispid, TCAPOleStr &caStringsOut, TCALongint &caCookiesOut
) = 0;
virtual long __stdcall GetPredefinedValue(long dispid, long dwCookie, System::Variant &varOut) = 0;
public:
/* TObject.Create */ __fastcall IPerPropertyBrowsing(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IPerPropertyBrowsing(void) { }
};
class __declspec(delphiclass) IPropertyPageSite;
class __declspec(pascalimplementation) IPropertyPageSite : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall OnStatusChange(long flags) = 0;
virtual long __stdcall GetLocaleID(long &localeID) = 0;
virtual long __stdcall GetPageContainer(Ole2::IUnknown* &unk) = 0;
virtual long __stdcall TranslateAccelerator(Windows::PMsg msg) = 0;
public:
/* TObject.Create */ __fastcall IPropertyPageSite(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IPropertyPageSite(void) { }
};
class __declspec(delphiclass) IPropertyPage;
class __declspec(pascalimplementation) IPropertyPage : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall SetPageSite(IPropertyPageSite* pageSite) = 0;
virtual long __stdcall Activate(HWND hwndParent, const Windows::TRect &rc, DWord bModal) = 0;
virtual long __stdcall Deactivate(void) = 0;
virtual long __stdcall GetPageInfo(PROPPAGEINFO &pageInfo) = 0;
virtual long __stdcall SetObjects(long cObjects, Ole2::IUnknown* unk) = 0;
virtual long __stdcall Show(int nCmdShow) = 0;
virtual long __stdcall Move(const Windows::TRect &rect) = 0;
virtual long __stdcall IsPageDirty(void) = 0;
virtual long __stdcall Apply(void) = 0;
virtual long __stdcall Help(wchar_t * pszHelpDir) = 0;
virtual long __stdcall TranslateAccelerator(Windows::PMsg msg) = 0;
public:
/* TObject.Create */ __fastcall IPropertyPage(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IPropertyPage(void) { }
};
class __declspec(delphiclass) IPropertyPage2;
class __declspec(pascalimplementation) IPropertyPage2 : public IPropertyPage
{
typedef IPropertyPage inherited;
public:
virtual long __stdcall EditProperty(long dispid) = 0;
public:
/* TObject.Create */ __fastcall IPropertyPage2(void) : Olectl::IPropertyPage() { }
/* TObject.Destroy */ __fastcall virtual ~IPropertyPage2(void) { }
};
class __declspec(delphiclass) IFont;
class __declspec(pascalimplementation) IFont : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall get_Name(wchar_t * &name) = 0;
virtual long __stdcall put_Name(wchar_t * name) = 0;
virtual long __stdcall get_Size(System::Comp &size) = 0;
virtual long __stdcall put_Size(System::Comp size) = 0;
virtual long __stdcall get_Bold(DWord &bold) = 0;
virtual long __stdcall put_Bold(DWord bold) = 0;
virtual long __stdcall get_Italic(DWord &italic) = 0;
virtual long __stdcall put_Italic(DWord italic) = 0;
virtual long __stdcall get_Underline(DWord &underline) = 0;
virtual long __stdcall put_Underline(DWord underline) = 0;
virtual long __stdcall get_Strikethrough(DWord &strikethrough) = 0;
virtual long __stdcall put_Strikethrough(DWord strikethrough) = 0;
virtual long __stdcall get_Weight(short &weight) = 0;
virtual long __stdcall put_Weight(short weight) = 0;
virtual long __stdcall get_Charset(short &charset) = 0;
virtual long __stdcall put_Charset(short charset) = 0;
virtual long __stdcall get_hFont(HFONT &font) = 0;
virtual long __stdcall Clone(IFont* &font) = 0;
virtual long __stdcall IsEqual(IFont* fontOther) = 0;
virtual long __stdcall SetRatio(long cyLogical, long cyHimetric) = 0;
virtual long __stdcall QueryTextMetrics(TEXTMETRICW &tm) = 0;
virtual long __stdcall AddRefHfont(HFONT font) = 0;
virtual long __stdcall ReleaseHfont(HFONT font) = 0;
public:
/* TObject.Create */ __fastcall IFont(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IFont(void) { }
};
class __declspec(delphiclass) IFontDisp;
class __declspec(pascalimplementation) IFontDisp : public Ole2::IDispatch
{
typedef Ole2::IDispatch inherited;
public:
/* TObject.Create */ __fastcall IFontDisp(void) : Ole2::IDispatch() { }
/* TObject.Destroy */ __fastcall virtual ~IFontDisp(void) { }
};
typedef tagFONTDESC *PFontDesc;
typedef tagFONTDESC TFontDesc;
class __declspec(delphiclass) IPicture;
class __declspec(pascalimplementation) IPicture : public Ole2::IUnknown
{
typedef Ole2::IUnknown inherited;
public:
virtual long __stdcall get_Handle(long &handle) = 0;
virtual long __stdcall get_hPal(long &handle) = 0;
virtual long __stdcall get_Type(short &typ) = 0;
virtual long __stdcall get_Width(long &width) = 0;
virtual long __stdcall get_Height(long &height) = 0;
virtual long __stdcall Render(HDC dc, long x, long y, long cx, long cy, long xSrc, long ySrc, long
cxSrc, long cySrc, const Windows::TRect &rcWBounds) = 0;
virtual long __stdcall set_hPal(long hpal) = 0;
virtual long __stdcall get_CurDC(HDC &dcOut) = 0;
virtual long __stdcall SelectPicture(HDC dcIn, HDC &hdcOut, long &bmpOut) = 0;
virtual long __stdcall get_KeepOriginalFormat(DWord &fkeep) = 0;
virtual long __stdcall put_KeepOriginalFormat(DWord fkeep) = 0;
virtual long __stdcall PictureChanged(void) = 0;
virtual long __stdcall SaveAsFile(Ole2::IStream* stream, DWord fSaveMemCopy, long &cbSize) = 0;
virtual long __stdcall get_Attributes(long dwAttr) = 0;
public:
/* TObject.Create */ __fastcall IPicture(void) : Ole2::IUnknown() { }
/* TObject.Destroy */ __fastcall virtual ~IPicture(void) { }
};
class __declspec(delphiclass) IPictureDisp;
class __declspec(pascalimplementation) IPictureDisp : public Ole2::IDispatch
{
typedef Ole2::IDispatch inherited;
public:
/* TObject.Create */ __fastcall IPictureDisp(void) : Ole2::IDispatch() { }
/* TObject.Destroy */ __fastcall virtual ~IPictureDisp(void) { }
};
typedef tagPICTDESC *PPictDesc;
typedef tagPICTDESC TPictDesc;
//-- var, const, procedure ---------------------------------------------------
extern GUID IID_IPropertyNotifySink;
extern GUID IID_IClassFactory2;
extern GUID IID_IProvideClassInfo;
extern GUID IID_IConnectionPointContainer;
extern GUID IID_IEnumConnectionPoints;
extern GUID IID_IConnectionPoint;
extern GUID IID_IEnumConnections;
extern GUID IID_IOleControl;
extern GUID IID_IOleControlSite;
extern GUID IID_ISimpleFrameSite;
extern GUID IID_IPersistStreamInit;
extern GUID IID_IPropertyFrame;
extern GUID IID_ISpecifyPropertyPages;
extern GUID IID_IPerPropertyBrowsing;
extern GUID IID_IPropertyPageSite;
extern GUID IID_IPropertyPage;
extern GUID IID_IPropertyPage2;
extern GUID IID_IFont;
extern GUID IID_IFontDisp;
extern GUID IID_IPicture;
extern GUID IID_IPictureDisp;
extern GUID CLSID_CFontPropPage;
extern GUID CLSID_CColorPropPage;
extern GUID CLSID_CPicturePropPage;
extern GUID CLSID_PersistPropset;
extern GUID CLSID_ConvertVBX;
extern GUID CLSID_StdFont;
extern GUID CLSID_StdPicture;
} /* namespace Olectl */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Olectl;
#endif
//-- end unit ----------------------------------------------------------------
#endif // OleCtl