OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TOcControlEvent Class Reference

OC Control Event class for standard control events. More...

#include <ocf/occtrl.h>

Inheritance diagram for ocf::TOcControlEvent:
ocf::TUnknown

Public Member Functions

 TOcControlEvent ()
 
TOcControlGetControl ()
 
- Public Member Functions inherited from ocf::TUnknown
 operator IUnknown & ()
 
 operator IUnknown * ()
 
IUnknown * SetOuter (IUnknown *outer=0)
 
IUnknown * GetOuter ()
 
unsigned long GetRefCount ()
 
unsigned long AdjustRefCount (int i)
 
IUnknown & Aggregate (TUnknown &inner)
 

Protected Member Functions

 ~TOcControlEvent ()
 
virtual void InitEventDispatch ()
 
TUnknownCreateAutoObject (const void *obj, TAutoClass &clsInfo)
 
long Click ()
 
long DblClick ()
 
long MouseDown (short Button, short Shift, long X, long Y)
 
long MouseMove (short Button, short Shift, long X, long Y)
 
long MouseUp (short Button, short Shift, long X, long Y)
 
long KeyDown (short *KeyCode, short Shift)
 
long KeyUp (short *KeyCode, short Shift)
 
long ErrorEvent (short number, TAutoString Description, SCODE SCode, TAutoString Source, TAutoString HelpFile, long helpContext, bool *CancelDisplay)
 
HRESULT ForwardClickEvent (owl::uint msg, DISPID id)
 
HRESULT ForwardKeyEvent (owl::uint msg, DISPID id, short *KeyCode, short Shift)
 
HRESULT ForwardMouseEvent (owl::uint msg, DISPID id, short Button, short Shift, long X, long Y)
 
HRESULT CustomEvent (long *args)
 
 AUTOFUNC7 (ErrorEvent, ErrorEvent, long, short, TAutoString, long, TAutoString, TAutoString, long, bool *, public:) friend TOcControl
 
- Protected Member Functions inherited from ocf::TUnknown
 TUnknown ()
 
virtual ~TUnknown ()
 
IUnknown & ThisUnknown ()
 
virtual HRESULT QueryObject (const GUID &iid, void **pif)
 QueryObject used when TUnknown is in constructor/destructor.
 

Protected Attributes

TOcControlpCtrl
 
TServedObjectpIEvents
 
- Protected Attributes inherited from ocf::TUnknown
IUnknown * Outer
 

Detailed Description

OC Control Event class for standard control events.

Definition at line 202 of file occtrl.h.

Constructor & Destructor Documentation

◆ TOcControlEvent()

ocf::TOcControlEvent::TOcControlEvent ( )

Definition at line 1074 of file occtrl.cpp.

◆ ~TOcControlEvent()

ocf::TOcControlEvent::~TOcControlEvent ( )
protected

Definition at line 1079 of file occtrl.cpp.

References pIEvents, and ocf::TServedObject::Release().

Member Function Documentation

◆ AUTOFUNC7()

ocf::TOcControlEvent::AUTOFUNC7 ( ErrorEvent ,
ErrorEvent ,
long ,
short ,
TAutoString ,
long ,
TAutoString ,
TAutoString ,
long ,
bool * ,
public:  )
protected

References ocf::CustomEvent.

◆ Click()

HRESULT ocf::TOcControlEvent::Click ( )
protected

Definition at line 1191 of file occtrl.cpp.

References ForwardClickEvent(), and OC_CTRLEVENT_CLICK.

◆ CreateAutoObject()

TUnknown * ocf::TOcControlEvent::CreateAutoObject ( const void * obj,
TAutoClass & clsInfo )
protected

Definition at line 1093 of file occtrl.cpp.

References ocf::TOcControl::CreateAutoObject(), pCtrl, and pIEvents.

◆ CustomEvent()

HRESULT ocf::TOcControlEvent::CustomEvent ( long * args)
protected

◆ DblClick()

HRESULT ocf::TOcControlEvent::DblClick ( )
protected

Definition at line 1200 of file occtrl.cpp.

References ForwardClickEvent(), and OC_CTRLEVENT_DBLCLICK.

◆ ErrorEvent()

HRESULT ocf::TOcControlEvent::ErrorEvent ( short number,
TAutoString Description,
SCODE SCode,
TAutoString Source,
TAutoString HelpFile,
long helpContext,
bool * CancelDisplay )
protected

◆ ForwardClickEvent()

HRESULT ocf::TOcControlEvent::ForwardClickEvent ( owl::uint msg,
DISPID id )
protected

Definition at line 1108 of file occtrl.cpp.

References ocf::TOcControl::GetActiveControlView(), and pCtrl.

◆ ForwardKeyEvent()

HRESULT ocf::TOcControlEvent::ForwardKeyEvent ( owl::uint msg,
DISPID id,
short * KeyCode,
short Shift )
protected

Definition at line 1140 of file occtrl.cpp.

References ocf::TOcControl::GetActiveControlView(), and pCtrl.

◆ ForwardMouseEvent()

HRESULT ocf::TOcControlEvent::ForwardMouseEvent ( owl::uint msg,
DISPID id,
short Button,
short Shift,
long X,
long Y )
protected

Definition at line 1123 of file occtrl.cpp.

References ocf::TOcControl::GetActiveControlView(), and pCtrl.

◆ GetControl()

TOcControl * ocf::TOcControlEvent::GetControl ( )
inline

Definition at line 208 of file occtrl.h.

◆ InitEventDispatch()

void ocf::TOcControlEvent::InitEventDispatch ( )
protectedvirtual

Definition at line 1086 of file occtrl.cpp.

References CreateAutoObject(), and pIEvents.

◆ KeyDown()

HRESULT ocf::TOcControlEvent::KeyDown ( short * KeyCode,
short Shift )
protected

Definition at line 1239 of file occtrl.cpp.

References ForwardKeyEvent(), and OC_CTRLEVENT_KEYDOWN.

◆ KeyUp()

HRESULT ocf::TOcControlEvent::KeyUp ( short * KeyCode,
short Shift )
protected

Definition at line 1249 of file occtrl.cpp.

References ForwardKeyEvent(), and OC_CTRLEVENT_KEYUP.

◆ MouseDown()

HRESULT ocf::TOcControlEvent::MouseDown ( short Button,
short Shift,
long X,
long Y )
protected

Definition at line 1209 of file occtrl.cpp.

References ForwardMouseEvent(), and OC_CTRLEVENT_MOUSEDOWN.

◆ MouseMove()

HRESULT ocf::TOcControlEvent::MouseMove ( short Button,
short Shift,
long X,
long Y )
protected

Definition at line 1219 of file occtrl.cpp.

References ForwardMouseEvent(), and OC_CTRLEVENT_MOUSEMOVE.

◆ MouseUp()

HRESULT ocf::TOcControlEvent::MouseUp ( short Button,
short Shift,
long X,
long Y )
protected

Definition at line 1229 of file occtrl.cpp.

References ForwardMouseEvent(), and OC_CTRLEVENT_MOUSEUP.

Member Data Documentation

◆ pCtrl

TOcControl* ocf::TOcControlEvent::pCtrl
protected

Definition at line 237 of file occtrl.h.

◆ pIEvents

TServedObject* ocf::TOcControlEvent::pIEvents
protected

Definition at line 238 of file occtrl.h.


The documentation for this class was generated from the following files: