home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
OLECTRLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
18KB
|
440 lines
//----------------------------------------------------------------------------
// OleCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: OleCtrls.pas
//----------------------------------------------------------------------------
#ifndef OleCtrlsHPP
#define OleCtrlsHPP
//----------------------------------------------------------------------------
#include <OleAuto.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <OleCtl.hpp>
#include <OLE2.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Olectrls
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TOleClientSite;
class __declspec(delphiclass) TOleControl;
struct TControlData;
typedef TControlData *PControlData;
class __declspec(delphiclass) TOleControlSite;
class __declspec(pascalimplementation) TOleControlSite : public Olectl::IOleControlSite
{
typedef Olectl::IOleControlSite inherited;
private:
TOleControl* FControl;
public:
__fastcall TOleControlSite(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall OnControlInfoChanged(void);
virtual long __stdcall LockInPlaceActive(DWord fLock);
virtual long __stdcall GetExtendedControl(Ole2::IDispatch* &disp);
virtual long __stdcall TransformCoords(POINT &ptlHimetric, POINTF &ptfContainer, long flags);
virtual long __stdcall TranslateAccelerator(Windows::PMsg msg, long grfModifiers);
virtual long __stdcall OnFocus(DWord fGotFocus);
virtual long __stdcall ShowPropertyFrame(void);
public:
/* TObject.Destroy */ __fastcall virtual ~TOleControlSite(void) { }
};
class __declspec(delphiclass) TOleInPlaceSite;
class __declspec(pascalimplementation) TOleInPlaceSite : public Ole2::IOleInPlaceSite
{
typedef Ole2::IOleInPlaceSite inherited;
private:
TOleControl* FControl;
public:
__fastcall TOleInPlaceSite(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetWindow(HWND &wnd);
virtual long __stdcall ContextSensitiveHelp(DWord fEnterMode);
virtual long __stdcall CanInPlaceActivate(void);
virtual long __stdcall OnInPlaceActivate(void);
virtual long __stdcall OnUIActivate(void);
virtual long __stdcall GetWindowContext(Ole2::IOleInPlaceFrame* &frame, Ole2::IOleInPlaceUIWindow*
&doc, Windows::TRect &rcPosRect, Windows::TRect &rcClipRect, OLEINPLACEFRAMEINFO &frameInfo);
virtual long __stdcall Scroll(const POINT &scrollExtent);
virtual long __stdcall OnUIDeactivate(DWord fUndoable);
virtual long __stdcall OnInPlaceDeactivate(void);
virtual long __stdcall DiscardUndoState(void);
virtual long __stdcall DeactivateAndUndo(void);
virtual long __stdcall OnPosRectChange(const Windows::TRect &rcPosRect);
public:
/* TObject.Destroy */ __fastcall virtual ~TOleInPlaceSite(void) { }
};
class __declspec(delphiclass) TOleInPlaceFrame;
class __declspec(pascalimplementation) TOleInPlaceFrame : public Ole2::IOleInPlaceFrame
{
typedef Ole2::IOleInPlaceFrame inherited;
private:
TOleControl* FControl;
public:
__fastcall TOleInPlaceFrame(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetWindow(HWND &wnd);
virtual long __stdcall ContextSensitiveHelp(DWord fEnterMode);
virtual long __stdcall GetBorder(Windows::TRect &rectBorder);
virtual long __stdcall RequestBorderSpace(const Windows::TRect &borderwidths);
virtual long __stdcall SetBorderSpace(Windows::PRect pborderwidths);
virtual long __stdcall SetActiveObject(Ole2::IOleInPlaceActiveObject* activeObject, wchar_t * pszObjName
);
virtual long __stdcall InsertMenus(HMENU hmenuShared, OLEMENUGROUPWIDTHS &menuWidths);
virtual long __stdcall SetMenu(HMENU hmenuShared, HMENU holemenu, HWND hwndActiveObject);
virtual long __stdcall RemoveMenus(HMENU hmenuShared);
virtual long __stdcall SetStatusText(wchar_t * pszStatusText);
virtual long __stdcall EnableModeless(DWord fEnable);
virtual long __stdcall TranslateAccelerator(MSG &msg, Word wID);
public:
/* TObject.Destroy */ __fastcall virtual ~TOleInPlaceFrame(void) { }
};
class __declspec(delphiclass) TAmbientDispatch;
class __declspec(pascalimplementation) TAmbientDispatch : public Ole2::IDispatch
{
typedef Ole2::IDispatch inherited;
private:
TOleControl* FControl;
public:
__fastcall TAmbientDispatch(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetTypeInfoCount(int &ctinfo);
virtual long __stdcall GetTypeInfo(int itinfo, long lcid, Ole2::ITypeInfo* &tinfo);
virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long
lcid, Ole2::PDispIDList rgdispid);
virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS
&dispParams, System::PVariant varResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
public:
/* TObject.Destroy */ __fastcall virtual ~TAmbientDispatch(void) { }
};
class __declspec(delphiclass) TEventDispatch;
class __declspec(pascalimplementation) TEventDispatch : public Ole2::IDispatch
{
typedef Ole2::IDispatch inherited;
private:
TOleControl* FControl;
public:
__fastcall TEventDispatch(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall GetTypeInfoCount(int &ctinfo);
virtual long __stdcall GetTypeInfo(int itinfo, long lcid, Ole2::ITypeInfo* &tinfo);
virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long
lcid, Ole2::PDispIDList rgdispid);
virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS
&dispParams, System::PVariant varResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
public:
/* TObject.Destroy */ __fastcall virtual ~TEventDispatch(void) { }
};
class __declspec(delphiclass) TPropertyNotifySink;
class __declspec(pascalimplementation) TPropertyNotifySink : public Olectl::IPropertyNotifySink
{
typedef Olectl::IPropertyNotifySink inherited;
private:
TOleControl* FControl;
public:
__fastcall TPropertyNotifySink(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall OnChanged(long dispid);
virtual long __stdcall OnRequestEdit(long dispid);
public:
/* TObject.Destroy */ __fastcall virtual ~TPropertyNotifySink(void) { }
};
class __declspec(delphiclass) TSimpleFrameSite;
class __declspec(pascalimplementation) TSimpleFrameSite : public Olectl::ISimpleFrameSite
{
typedef Olectl::ISimpleFrameSite inherited;
private:
TOleControl* FControl;
public:
__fastcall TSimpleFrameSite(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall PreMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long &Cookie);
virtual long __stdcall PostMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long Cookie);
public:
/* TObject.Destroy */ __fastcall virtual ~TSimpleFrameSite(void) { }
};
typedef short TOleEnum;
class __declspec(delphiclass) TEnumPropDesc;
class __declspec(pascalimplementation) TOleControl : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TControlData *FControlData;
long FRefCount;
TOleClientSite* FOleClientSite;
TOleControlSite* FOleControlSite;
TOleInPlaceSite* FOleInPlaceSite;
TOleInPlaceFrame* FOleInPlaceFrame;
TAmbientDispatch* FAmbientDispatch;
TEventDispatch* FEventDispatch;
TPropertyNotifySink* FPropertyNotifySink;
TSimpleFrameSite* FSimpleFrameSite;
int FObjectData;
Ole2::IOleObject* FOleObject;
Olectl::IPersistStreamInit* FPersistStream;
Olectl::IOleControl* FOleControl;
Ole2::IDispatch* FControlDispatch;
Olectl::IPerPropertyBrowsing* FPropBrowsing;
Ole2::IOleInPlaceObject* FOleInPlaceObject;
Ole2::IOleInPlaceActiveObject* FOleInPlaceActiveObject;
long FPropConnection;
long FEventsConnection;
long FMiscStatus;
bool FUpdatingColor;
bool FUpdatingFont;
bool FUpdatingEnabled;
long __fastcall AddRef(void);
void __fastcall CreateControl(void);
void __fastcall CreateEnumPropDescs(void);
void __fastcall CreateInstance(void);
void __fastcall CreateStorage(void);
void __fastcall DesignModified(void);
void __fastcall DestroyControl(void);
void __fastcall DestroyEnumPropDescs(void);
void __fastcall DestroyStorage(void);
void __fastcall GetEventMethod(long DispID, Sysutils::TMethod &Method);
Menus::TMainMenu* __fastcall GetMainMenu(void);
System::Variant __fastcall GetOleObject(void);
void __fastcall HookControlWndProc(void);
void __fastcall InvokeEvent(long DispID, DISPPARAMS &Params);
long __fastcall QueryInterface(const GUID &iid, void *obj);
void __fastcall ReadData(Classes::TStream* Stream);
long __fastcall Release(void);
void __fastcall SetUIActive(bool Active);
void __fastcall StandardEvent(long DispID, DISPPARAMS &Params);
void __fastcall WriteData(Classes::TStream* Stream);
HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
MESSAGE void __fastcall CMDocWindowActivate(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TMessage &Message);
MESSAGE void __fastcall CMUIActivate(Messages::TMessage &Message);
MESSAGE void __fastcall CMUIDeactivate(Messages::TMessage &Message);
protected:
int FEvents;
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DefaultHandler(void *Message);
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
virtual void __fastcall DestroyWindowHandle(void);
Graphics::TColor __fastcall GetColorProp(int Index);
System::Comp __fastcall GetCurrencyProp(int Index);
double __fastcall GetDoubleProp(int Index);
int __fastcall GetIntegerProp(int Index);
Word __fastcall GetOleBoolProp(int Index);
double __fastcall GetOleDateProp(int Index);
TOleEnum __fastcall GetOleEnumProp(int Index);
void __fastcall GetProperty(int Index, System::TVarData &Value);
float __fastcall GetSingleProp(int Index);
short __fastcall GetSmallintProp(int Index);
System::AnsiString __fastcall GetStringProp(int Index);
System::Variant __fastcall GetVariantProp(int Index);
virtual void __fastcall InitControlData(void) = 0;
void __fastcall InvokeMethod(void *DispInfo, void * Result);
virtual bool __fastcall PaletteChanged(bool Foreground);
void __fastcall SetColorProp(int Index, Graphics::TColor Value);
void __fastcall SetCurrencyProp(int Index, System::Comp Value);
void __fastcall SetDoubleProp(int Index, double Value);
void __fastcall SetIntegerProp(int Index, int Value);
virtual void __fastcall SetName(const System::AnsiString Value);
void __fastcall SetOleBoolProp(int Index, Word Value);
void __fastcall SetOleDateProp(int Index, double Value);
void __fastcall SetOleEnumProp(int Index, TOleEnum Value);
void __fastcall SetProperty(int Index, const System::TVarData &Value);
void __fastcall SetSingleProp(int Index, float Value);
void __fastcall SetSmallintProp(int Index, short Value);
void __fastcall SetStringProp(int Index, const System::AnsiString Value);
void __fastcall SetVariantProp(int Index, const System::Variant &Value);
virtual void __fastcall WndProc(Messages::TMessage &Message);
__property PControlData ControlData = {read=FControlData, write=FControlData, nodefault};
public:
__fastcall virtual TOleControl(Classes::TComponent* AOwner);
__fastcall virtual ~TOleControl(void);
void __fastcall BrowseProperties(void);
void __fastcall DoObjectVerb(int Verb);
TEnumPropDesc* __fastcall GetEnumPropDesc(int DispID);
bool __fastcall GetHelpContext( System::AnsiString Member, int &HelpCtx, System::AnsiString &HelpFile
);
void __fastcall GetObjectVerbs(Classes::TStrings* List);
System::AnsiString __fastcall GetPropDisplayString(int DispID);
void __fastcall GetPropDisplayStrings(int DispID, Classes::TStrings* List);
bool __fastcall IsCustomProperty(int DispID);
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
void __fastcall SetPropDisplayString(int DispID, const System::AnsiString Value);
void __fastcall ShowAboutBox(void);
__property System::Variant OleObject = {read=GetOleObject};
__property TabStop ;
public:
/* TWinControl.CreateParented */ __fastcall TOleControl(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(pascalimplementation) TOleClientSite : public Ole2::IOleClientSite
{
typedef Ole2::IOleClientSite inherited;
private:
TOleControl* FControl;
public:
__fastcall TOleClientSite(TOleControl* Control);
virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
virtual long __stdcall AddRef(void);
virtual long __stdcall Release(void);
virtual long __stdcall SaveObject(void);
virtual long __stdcall GetMoniker(long dwAssign, long dwWhichMoniker, Ole2::IMoniker* &mk);
virtual long __stdcall GetContainer(Ole2::IOleContainer* &container);
virtual long __stdcall ShowObject(void);
virtual long __stdcall OnShowWindow(DWord fShow);
virtual long __stdcall RequestNewObjectLayout(void);
public:
/* TObject.Destroy */ __fastcall virtual ~TOleClientSite(void) { }
};
struct TEnumValue
{
long Value;
System::AnsiString Ident;
} ;
typedef TEnumValue TEnumValueList[32768];
typedef TEnumValueList *PEnumValueList;
class __declspec(pascalimplementation) TEnumPropDesc : public System::TObject
{
typedef System::TObject inherited;
private:
int FDispID;
int FValueCount;
TEnumValueList *FValues;
public:
__fastcall TEnumPropDesc(int DispID, int ValueCount, Ole2::ITypeInfo* TypeInfo);
__fastcall virtual ~TEnumPropDesc(void);
void __fastcall GetStrings(Classes::TGetStrProc Proc);
int __fastcall StringToValue(const System::AnsiString S);
System::AnsiString __fastcall ValueToString(int V);
};
struct TControlData
{
GUID ClassID;
GUID EventIID;
long EventCount;
void *EventDispIDs;
void *LicenseKey;
int Flags;
int InstanceCount;
Classes::TList* EnumPropDescs;
} ;
class __declspec(delphiclass) EOleCtrlError;
class __declspec(pascalimplementation) EOleCtrlError : public Sysutils::Exception
{
typedef Sysutils::Exception inherited;
public:
/* Exception.Create */ __fastcall EOleCtrlError(const System::AnsiString Msg) : Sysutils::Exception(
Msg) { }
/* Exception.CreateFmt */ __fastcall EOleCtrlError(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
/* Exception.CreateRes */ __fastcall EOleCtrlError(int Ident) : Sysutils::Exception(Ident) { }
/* Exception.CreateResFmt */ __fastcall EOleCtrlError(int Ident, const System::TVarRec * Args, const
int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
/* Exception.CreateHelp */ __fastcall EOleCtrlError(const System::AnsiString Msg, int AHelpContext)
: Sysutils::Exception(Msg, AHelpContext) { }
/* Exception.CreateFmtHelp */ __fastcall EOleCtrlError(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
) { }
/* Exception.CreateResHelp */ __fastcall EOleCtrlError(int Ident, int AHelpContext) : Sysutils::Exception(
Ident, AHelpContext) { }
/* Exception.CreateResFmtHelp */ __fastcall EOleCtrlError(int Ident, const System::TVarRec * Args,
const int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext)
{ }
public:
/* TObject.Destroy */ __fastcall virtual ~EOleCtrlError(void) { }
};
//-- var, const, procedure ---------------------------------------------------
extern System::Variant __fastcall FontToOleFont(Graphics::TFont* Font);
extern void __fastcall OleFontToFont(const System::Variant &OleFont, Graphics::TFont* Font);
} /* namespace Olectrls */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Olectrls;
#endif
//-- end unit ----------------------------------------------------------------
#endif // OleCtrls