9#if !defined(OCF_OCCTRL_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
42 void Init(
int index, ITypeInfo* typeInfo);
94 TOcView* GetActiveControlView();
96 ITypeInfo* GetEventTypeInfo();
97 IDispatch* GetCtlDispatch();
102 {
if (def) Flags |= OcxDefault;
else Flags &= ~OcxDefault;}
104 {
if (cancel) Flags |= OcxCancel;
else Flags &= ~OcxCancel;}
111 bool FillEventList();
116 bool IsCancel()
const {
return (Flags & OcxCancel) != 0;}
117 bool IsDefault()
const {
return (Flags & OcxDefault)!= 0;}
122 void SetLeft(
long Value);
123 void SetWidth(
long Value);
124 void SetTop(
long Value);
125 void SetHeight(
long Value);
127 IDispatch* GetParent();
131 HRESULT
Refresh() {
return GetBControlI()->Refresh(); }
132 HRESULT
DoClick() {
return GetBControlI()->DoClick(); }
133 HRESULT
AboutBox() {
return GetBControlI()->AboutBox();}
148 HRESULT QueryObject(
const IID &
iid,
void * * iface);
161 HRESULT
_IFUNC OnPropertyChanged(DISPID dispid);
162 HRESULT
_IFUNC OnPropertyRequestEdit(DISPID dispid);
163 HRESULT
_IFUNC OnControlFocus(BOOL fGotFocus);
170 {
return TOcPart::Init(dp, p, s, b);}
174 void SetEventDispatch();
180 AUTOPROP(Visible, IsVisible, SetVisible,
bool,
public:)
182 AUTOPROP(Default, IsDefault, SetDefault, bool, public:)
189 AUTOPROP(Left, GetLeft, SetLeft, long, public:)
191 AUTOPROP(Width, GetWidth, SetWidth, long, public:)
213 virtual void InitEventDispatch();
220 long MouseDown(
short Button,
short Shift,
long X,
long Y);
221 long MouseMove(
short Button,
short Shift,
long X,
long Y);
222 long MouseUp (
short Button,
short Shift,
long X,
long Y);
223 long KeyDown (
short* KeyCode,
short Shift);
224 long KeyUp (
short* KeyCode,
short Shift);
225 long ErrorEvent(
short number,
TAutoString Description,
228 long helpContext,
bool * CancelDisplay);
230 HRESULT ForwardClickEvent(
owl::uint msg, DISPID
id);
231 HRESULT ForwardKeyEvent (
owl::uint msg, DISPID
id,
short *KeyCode,
short Shift);
232 HRESULT ForwardMouseEvent(
owl::uint msg, DISPID
id,
short Button,
short Shift,
246 AUTOFUNC4(MouseDown, MouseDown,
long,
short,
short,
long,
long,
public:)
247 AUTOFUNC4(MouseUp, MouseUp, long, short, short, long, long, public:)
249 AUTOFUNC2(KeyDown, KeyDown, long, short*, short, public:)
278 HRESULT QueryObject(
const IID &
iid,
void * * iface);
282 void SetBackColor(
long Color);
283 void SetForeColor(
long Color);
284 void SetLocaleID(
long LocaleId);
285 void SetMessageReflect(
bool MsgRef);
286 void SetTextAlign(
short Align);
287 void SetUserMode(
bool Mode);
288 void SetUIDead(
bool Dead);
289 void SetShowGrabHandles(
bool Handles);
290 void SetSupportsMnemonics(
bool Mnem);
291 void SetShowHatching(
bool Hatch);
292 void SetDisplayAsDefault(
bool Disp);
295 void SetFont(IDispatch *pFontDisp);
301 bool GetMessageReflect();
302 short GetTextAlign();
305 bool GetShowGrabHandles();
306 bool GetSupportsMnemonics();
307 bool GetShowHatching();
308 bool GetDisplayAsDefault();
311 IDispatch* GetFont();
313 void SetAmbBackColor(
long Color);
314 void SetAmbForeColor(
long Color);
315 void SetAmbLocaleID(
long LocaleId);
316 void SetAmbMessageReflect(
bool MsgRef);
317 void SetAmbTextAlign(
short Align);
318 void SetAmbUserMode(
bool Mode);
319 void SetAmbUIDead(
bool Dead);
320 void SetAmbShowGrabHandles(
bool Handles);
321 void SetAmbSupportsMnemonics(
bool Mnem);
322 void SetAmbShowHatching(
bool Hatch);
323 void SetAmbDisplayAsDefault(
bool Disp);
326 void SetAmbFont(IDispatch *pFontDisp);
328 void AmbientChanged(DISPID dispid);
329 long GetAmbientValue(
long AmbientMsg,
long Default);
338 AUTOPROP(BackColor, GetBackColor, SetAmbBackColor,
long,
public:)
340 AUTOPROP(LocaleID, GetLocaleID, SetAmbLocaleID, long, public:)
341 AUTOPROP(MessageReflect, GetMessageReflect, SetAmbMessageReflect, bool, public:)
344 AUTOPROP(UIDead, GetUIDead, SetAmbUIDead, bool, public:)
346 AUTOPROP(ShowHatching, GetShowHatching, SetAmbShowHatching, bool, public:)
355 AUTOPROP(
Font, GetFont, SetAmbFont, IDispatch*, public:)
357 AUTOPROP(SupportsMnemonics,GetSupportsMnemonics,SetAmbSupportsMnemonics, bool, public:)
375 TCtrlEvent(ctl, id), Button(butt), Shift(shft), X(x), Y(y)
386 KeyCode(kcode), Shift(shft)
414 long hlpCtx,
bool xceldisplay) :
416 Number(num), Description(desc), SCode(scode), Source(src),
417 HelpFile(hlpfile), HelpContext(hlpCtx),
418 CancelDisplay(xceldisplay)
443 lpptHimetric(him), lpptContainer(pcont), flags(flgs)
Automation Symbol Table, Command, and Proxy Macro Definitions.
#define AUTOFUNC7(name, func, ret, t1, t2, t3, t4, t5, t6, t7, defs)
#define DECLARE_AUTOCLASS(cls)
#define AUTOPROPRO(name, get, type, defs)
#define AUTOPROP(name, get, set, type, defs)
#define AUTOFUNC0R(name, func, ret)
#define AUTOFUNC2(name, func, ret, t1, t2, defs)
#define AUTOPROPBUG(name, get, set, type, defs)
#define AUTOFUNC4(name, func, ret, t1, t2, t3, t4, defs)
#define AUTOFUNCX(name, func, ret, defs)
IBDataProvider – Supported by parts and/or sites which can be copied to the OLE2 clipboard.
IBPart – Supported by server objects.
Automation argument stack abstraction.
Based on reference counted TString with added automation functionality.
owl::uint GetCount() const
const GUID & GetEventIID() const
OC Control Event class for standard control events.
TOcControl * GetControl()
Class representing an embedded control within a document.
TOcControlEvent * pEvents
TUNKNOWN_STANDARD_IUNKNOWN_METHODS
TServedObject * pIExtended
HRESULT _IFUNC Init(IBDataProvider *dp, IBPart *p, LPCOLESTR s, BOOL b)
void SetCancel(bool cancel)
void SetDefault(bool def)
IBControl * GetBControlI()
OC Document class, holds parts & is a owner of views.
OC part class represents an embeded or linked part in a document.
The TOcView partner is a container (viewer) of a given (server/client) document.
The TOcxView partner is a container (viewer) of a given (server/client) document.
TServedObject * pIAmbients
owl::TString * pBlankString
OLE object exposed for automated access of internal object.
Standard implementation of a controlling IUnknown for an object, to be inherited with other COM inter...
TPointF is similar to TPoint, but uses floating variables rather than integers.
TPointL is similar to TPoint, but uses long rather than int variables.
TRect is a mathematical class derived from tagRect.
A registration parameter table, composed of a list of TRegItems.
Reference to reference counted string object TUString Lightweight reference object consisting of a po...
Object Component Framework (COM encapsulation)
HRESULT OcRegisterControl(TCHAR *ocxPath)
HRESULT OcUnregisterControl(CLSID ClassId)
Object Windows Library (OWLNext Core)
Definition of TOcPart class.
Definition of Compound Document TOcView Class.
TCtrlCustomEvent(TOcControl *ctl, DISPID id, TAutoStack *args)
TCtrlErrorEvent(TOcControl *ctl, short num, TAutoString desc, SCODE scode, TAutoString src, TAutoString hlpfile, long hlpCtx, bool xceldisplay)
Base struct for all control event messages.
TCtrlEvent(TOcControl *ctl, DISPID id)
TCtrlFocusEvent(TOcControl *ctl, bool gotFocus)
TCtrlKeyEvent(TOcControl *ctl, DISPID id, short kcode, short shft)
TCtrlMouseEvent(TOcControl *ctl, DISPID id, short butt, short shft, long x, long y)
TCtrlPropertyEvent(TOcControl *ctl, DISPID dispid, bool acpt=true)