soui 5.0.0.1
Soui5 Doc
 
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Loading...
Searching...
No Matches
ActiveXSite< T > Class Template Reference

Template class for managing an ActiveX control site. More...

#include <SAxContainer.h>

Public Member Functions

 ActiveXSite ()
 Constructor for ActiveXSite.
 
virtual ~ActiveXSite ()
 Destructor for ActiveXSite.
 
void SetAxHost (IAxHostDelegate *pAxHost)
 Set the delegate for ActiveX host operations.
 
void SetExternalUIHandler (IDocHostUIHandler *pUiHandler)
 Set the external UI handler for the ActiveX control.
 
IUnknown * GetActiveXControl ()
 Get the ActiveX control.
 
void Init (IUnknown *pControl)
 Initialize the ActiveX control.
 
void Clear ()
 Clear the ActiveX control and release resources.
 
HRESULT InitControl (IStream *pStream=NULL)
 Initialize the ActiveX control from a stream.
 
HRESULT ActivateAx (IStream *pStream=NULL)
 Activate the ActiveX control.
 
bool HitTest (const POINT &pt) const
 Check if a point is within the ActiveX control.
 
bool InsideClippingRegion (const RECT &rcClip) const
 Check if the control intersects with a clipping region.
 
HRESULT DoVerb (long verb)
 Perform a verb on the ActiveX control.
 
LRESULT Draw (HDC hDC, LPCRECT lpClipRect)
 Draw the ActiveX control.
 
HRESULT FireAmbientPropertyChange (DISPID dispChanged)
 Fire an ambient property change notification.
 
LRESULT OnWindowMessage (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handle a window message for the ActiveX control.
 
STDMETHOD QueryInterface2 (REFIID iid, void **object)
 Query for an interface.
 
STDMETHOD SaveObject (void)
 Save the object.
 
STDMETHOD GetMoniker (DWORD, DWORD dwWhichMoniker, IMoniker **ppmk)
 Get the moniker for the object.
 
STDMETHOD GetContainer (IOleContainer **ppContainer)
 Get the container for the object.
 
STDMETHOD ShowObject (void)
 Show the object.
 
STDMETHOD OnShowWindow (BOOL fShow)
 Notify the container of a show window event.
 
STDMETHOD RequestNewObjectLayout (void)
 Request a new object layout.
 
STDMETHOD OnControlInfoChanged (void)
 Notify the control that its info has changed.
 
STDMETHOD LockInPlaceActive (BOOL)
 Lock the control in place active state.
 
STDMETHOD GetExtendedControl (IDispatch **)
 Get the extended control.
 
STDMETHOD TransformCoords (POINTL *, POINTF *, DWORD)
 Transform coordinates between container and control.
 
STDMETHOD TranslateAccelerator (MSG *, DWORD)
 Translate an accelerator key.
 
STDMETHOD OnFocus (BOOL fGotFocus)
 Notify the control of focus change.
 
STDMETHOD ShowPropertyFrame (void)
 Show the property frame for the control.
 
STDMETHOD CanWindowlessActivate (void)
 Check if the control supports windowless activation.
 
STDMETHOD GetCapture (void)
 Check if the control currently has the mouse capture.
 
STDMETHOD SetCapture (BOOL fCapture)
 Set or release the mouse capture for the control.
 
STDMETHOD GetFocus (void)
 Check if the control currently has focus.
 
STDMETHOD SetFocus (BOOL fFocus)
 Set or release focus for the control.
 
STDMETHOD GetDC (LPCRECT pRect, DWORD grfFlags, HDC *phDC)
 Get a device context for the control.
 
STDMETHOD ReleaseDC (HDC hDC)
 Release a previously obtained device context.
 
STDMETHOD InvalidateRect (LPCRECT pRect, BOOL fErase)
 Invalidate a rectangle of the control.
 
STDMETHOD InvalidateRgn (HRGN, BOOL fErase)
 Invalidate a region of the control.
 
STDMETHOD ScrollRect (INT, INT, LPCRECT, LPCRECT)
 Scroll a rectangle of the control.
 
STDMETHOD AdjustRect (LPRECT)
 Adjust a rectangle for the control.
 
STDMETHOD OnDefWindowMessage (UINT msg, WPARAM wParam, LPARAM lParam, LRESULT *plResult)
 Handle a default window message for the control.
 
STDMETHOD OnInPlaceActivateEx (BOOL *pfNoRedraw, DWORD dwFlags)
 Activate the control in-place with extended options.
 
STDMETHOD OnInPlaceDeactivateEx (BOOL)
 Deactivate the control in-place with extended options.
 
STDMETHOD RequestUIActivate (void)
 Request UI activation for the control.
 
STDMETHOD CanInPlaceActivate (void)
 Check if the control can be activated in-place.
 
STDMETHOD OnInPlaceActivate (void)
 Activate the control in-place.
 
STDMETHOD OnUIActivate (void)
 Activate the control's user interface.
 
STDMETHOD GetWindowContext (IOleInPlaceFrame **ppFrame, IOleInPlaceUIWindow **ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo)
 Get the window context for the control.
 
STDMETHOD Scroll (SIZE)
 Scroll the control.
 
STDMETHOD OnUIDeactivate (BOOL)
 Deactivate the control's user interface.
 
STDMETHOD OnInPlaceDeactivate (void)
 Deactivate the control in-place.
 
STDMETHOD DiscardUndoState (void)
 Discard the undo state of the control.
 
STDMETHOD DeactivateAndUndo (void)
 Deactivate and undo the control.
 
STDMETHOD OnPosRectChange (LPCRECT lprcPosRect)
 Handle a change in the position rectangle of the control.
 
STDMETHOD GetWindow (HWND *phwnd)
 Get the window handle for the control.
 
STDMETHOD ContextSensitiveHelp (BOOL)
 Handle context-sensitive help for the control.
 
void OnDataChange (FORMATETC *, STGMEDIUM *)
 Handle a change in data.
 
void OnViewChange (DWORD, LONG)
 Handle a change in view.
 
void OnRename (IMoniker *)
 Handle a rename of the object.
 
void OnSave (void)
 Handle a save operation.
 
void OnClose (void)
 Handle a close operation.
 

Protected Member Functions

HRESULT SetExtent (int width, int height)
 Set the extent (size) of the control.
 
HRESULT DoInplaceActivate ()
 Perform in-place activation of the control.
 

Detailed Description

template<class T>
class ActiveXSite< T >

Template class for managing an ActiveX control site.

This class implements the necessary interfaces to host and manage an ActiveX control within a container. It handles the lifecycle of the control and provides the required interface implementations.

Template Parameters
TThe derived class that will use this template.

Definition at line 79 of file SAxContainer.h.

Constructor & Destructor Documentation

◆ ActiveXSite()

template<class T>
ActiveXSite< T >::ActiveXSite ( )
inline

Constructor for ActiveXSite.

Definition at line 90 of file SAxContainer.h.

◆ ~ActiveXSite()

template<class T>
virtual ActiveXSite< T >::~ActiveXSite ( )
inlinevirtual

Destructor for ActiveXSite.

Definition at line 107 of file SAxContainer.h.

Member Function Documentation

◆ ActivateAx()

template<class T>
HRESULT ActiveXSite< T >::ActivateAx ( IStream * pStream = NULL)
inline

Activate the ActiveX control.

Parameters
pStreamPointer to the stream containing the control data.
Returns
HRESULT indicating success or failure.

Definition at line 214 of file SAxContainer.h.

◆ AdjustRect()

template<class T>
STDMETHOD ActiveXSite< T >::AdjustRect ( LPRECT )
inline

Adjust a rectangle for the control.

Parameters
prcRectangle to be adjusted.
Returns
HRESULT indicating success or failure.

Definition at line 659 of file SAxContainer.h.

◆ CanInPlaceActivate()

template<class T>
STDMETHOD ActiveXSite< T >::CanInPlaceActivate ( void )
inline

Check if the control can be activated in-place.

Returns
S_OK if in-place activation is possible, otherwise an error code.

Definition at line 733 of file SAxContainer.h.

◆ CanWindowlessActivate()

template<class T>
STDMETHOD ActiveXSite< T >::CanWindowlessActivate ( void )
inline

Check if the control supports windowless activation.

Returns
S_OK if windowless activation is supported, otherwise an error code.

Definition at line 537 of file SAxContainer.h.

◆ Clear()

template<class T>
void ActiveXSite< T >::Clear ( )
inline

Clear the ActiveX control and release resources.

Definition at line 153 of file SAxContainer.h.

◆ ContextSensitiveHelp()

template<class T>
STDMETHOD ActiveXSite< T >::ContextSensitiveHelp ( BOOL )
inline

Handle context-sensitive help for the control.

Parameters
fEnterModeBoolean indicating if help should be entered.
Returns
HRESULT indicating success or failure.

Definition at line 880 of file SAxContainer.h.

◆ DeactivateAndUndo()

template<class T>
STDMETHOD ActiveXSite< T >::DeactivateAndUndo ( void )
inline

Deactivate and undo the control.

Returns
HRESULT indicating success or failure.

Definition at line 834 of file SAxContainer.h.

◆ DiscardUndoState()

template<class T>
STDMETHOD ActiveXSite< T >::DiscardUndoState ( void )
inline

Discard the undo state of the control.

Returns
HRESULT indicating success or failure.

Definition at line 825 of file SAxContainer.h.

◆ DoInplaceActivate()

template<class T>
HRESULT ActiveXSite< T >::DoInplaceActivate ( )
inlineprotected

Perform in-place activation of the control.

Returns
HRESULT indicating success or failure.

Definition at line 954 of file SAxContainer.h.

◆ DoVerb()

template<class T>
HRESULT ActiveXSite< T >::DoVerb ( long verb)
inline

Perform a verb on the ActiveX control.

Parameters
verbVerb to perform.
Returns
HRESULT indicating success or failure.

Definition at line 278 of file SAxContainer.h.

◆ Draw()

template<class T>
LRESULT ActiveXSite< T >::Draw ( HDC hDC,
LPCRECT lpClipRect )
inline

Draw the ActiveX control.

Parameters
hDCDevice context to draw on.
lpClipRectClipping rectangle.
Returns
LRESULT indicating success or failure.

Definition at line 305 of file SAxContainer.h.

◆ FireAmbientPropertyChange()

template<class T>
HRESULT ActiveXSite< T >::FireAmbientPropertyChange ( DISPID dispChanged)
inline

Fire an ambient property change notification.

Parameters
dispChangedDISPID of the changed property.
Returns
HRESULT indicating success or failure.

Definition at line 324 of file SAxContainer.h.

◆ GetActiveXControl()

template<class T>
IUnknown * ActiveXSite< T >::GetActiveXControl ( )
inline

Get the ActiveX control.

Returns
Pointer to the ActiveX control.

Definition at line 134 of file SAxContainer.h.

◆ GetCapture()

template<class T>
STDMETHOD ActiveXSite< T >::GetCapture ( void )
inline

Check if the control currently has the mouse capture.

Returns
S_OK if the control has the capture, S_FALSE otherwise.

Definition at line 547 of file SAxContainer.h.

◆ GetContainer()

template<class T>
STDMETHOD ActiveXSite< T >::GetContainer ( IOleContainer ** ppContainer)
inline

Get the container for the object.

Parameters
ppContainerPointer to receive the container.
Returns
HRESULT indicating success or failure.

Definition at line 413 of file SAxContainer.h.

◆ GetDC()

template<class T>
STDMETHOD ActiveXSite< T >::GetDC ( LPCRECT pRect,
DWORD grfFlags,
HDC * phDC )
inline

Get a device context for the control.

Parameters
pRectRectangle for which the DC is needed.
grfFlagsFlags specifying the type of DC.
phDCPointer to receive the device context.
Returns
HRESULT indicating success or failure.

Definition at line 600 of file SAxContainer.h.

◆ GetExtendedControl()

template<class T>
STDMETHOD ActiveXSite< T >::GetExtendedControl ( IDispatch ** )
inline

Get the extended control.

Parameters
ppDispPointer to receive the extended control.
Returns
HRESULT indicating success or failure.

Definition at line 486 of file SAxContainer.h.

◆ GetFocus()

template<class T>
STDMETHOD ActiveXSite< T >::GetFocus ( void )
inline

Check if the control currently has focus.

Returns
S_OK if the control has focus, S_FALSE otherwise.

Definition at line 572 of file SAxContainer.h.

◆ GetMoniker()

template<class T>
STDMETHOD ActiveXSite< T >::GetMoniker ( DWORD ,
DWORD dwWhichMoniker,
IMoniker ** ppmk )
inline

Get the moniker for the object.

Parameters
dwAssignAssignment type.
dwWhichMonikerType of moniker.
ppmkPointer to receive the moniker.
Returns
HRESULT indicating success or failure.

Definition at line 403 of file SAxContainer.h.

◆ GetWindow()

template<class T>
STDMETHOD ActiveXSite< T >::GetWindow ( HWND * phwnd)
inline

Get the window handle for the control.

Parameters
phwndPointer to receive the window handle.
Returns
S_OK if the window handle is retrieved successfully.

Definition at line 869 of file SAxContainer.h.

◆ GetWindowContext()

template<class T>
STDMETHOD ActiveXSite< T >::GetWindowContext ( IOleInPlaceFrame ** ppFrame,
IOleInPlaceUIWindow ** ppDoc,
LPRECT lprcPosRect,
LPRECT lprcClipRect,
LPOLEINPLACEFRAMEINFO lpFrameInfo )
inline

Get the window context for the control.

Parameters
ppFramePointer to receive the in-place frame.
ppDocPointer to receive the in-place document.
lprcPosRectPointer to receive the position rectangle.
lprcClipRectPointer to receive the clipping rectangle.
lpFrameInfoPointer to receive the frame information.
Returns
S_OK if the window context is retrieved successfully.

Definition at line 765 of file SAxContainer.h.

◆ HitTest()

template<class T>
bool ActiveXSite< T >::HitTest ( const POINT & pt) const
inline

Check if a point is within the ActiveX control.

Parameters
ptPoint to check.
Returns
Boolean indicating if the point is within the control.

Definition at line 248 of file SAxContainer.h.

◆ Init()

template<class T>
void ActiveXSite< T >::Init ( IUnknown * pControl)
inline

Initialize the ActiveX control.

Parameters
pControlPointer to the ActiveX control.

Definition at line 143 of file SAxContainer.h.

◆ InitControl()

template<class T>
HRESULT ActiveXSite< T >::InitControl ( IStream * pStream = NULL)
inline

Initialize the ActiveX control from a stream.

Parameters
pStreamPointer to the stream containing the control data.
Returns
HRESULT indicating success or failure.

Definition at line 188 of file SAxContainer.h.

◆ InsideClippingRegion()

template<class T>
bool ActiveXSite< T >::InsideClippingRegion ( const RECT & rcClip) const
inline

Check if the control intersects with a clipping region.

Parameters
rcClipClipping region to check.
Returns
Boolean indicating if the control intersects with the region.

Definition at line 264 of file SAxContainer.h.

◆ InvalidateRect()

template<class T>
STDMETHOD ActiveXSite< T >::InvalidateRect ( LPCRECT pRect,
BOOL fErase )
inline

Invalidate a rectangle of the control.

Parameters
pRectRectangle to be invalidated.
fEraseBoolean indicating if the background should be erased.
Returns
S_OK if the operation is successful.

Definition at line 621 of file SAxContainer.h.

◆ InvalidateRgn()

template<class T>
STDMETHOD ActiveXSite< T >::InvalidateRgn ( HRGN ,
BOOL fErase )
inline

Invalidate a region of the control.

Parameters
hRGNRegion to be invalidated.
fEraseBoolean indicating if the background should be erased.
Returns
S_OK if the operation is successful.

Definition at line 636 of file SAxContainer.h.

◆ LockInPlaceActive()

template<class T>
STDMETHOD ActiveXSite< T >::LockInPlaceActive ( BOOL )
inline

Lock the control in place active state.

Parameters
fLockBoolean indicating if the lock should be set.
Returns
HRESULT indicating success or failure.

Definition at line 476 of file SAxContainer.h.

◆ OnClose()

template<class T>
void ActiveXSite< T >::OnClose ( void )
inline

Handle a close operation.

Definition at line 922 of file SAxContainer.h.

◆ OnControlInfoChanged()

template<class T>
STDMETHOD ActiveXSite< T >::OnControlInfoChanged ( void )
inline

Notify the control that its info has changed.

Returns
HRESULT indicating success or failure.

Definition at line 466 of file SAxContainer.h.

◆ OnDataChange()

template<class T>
void ActiveXSite< T >::OnDataChange ( FORMATETC * ,
STGMEDIUM *  )
inline

Handle a change in data.

Parameters
pFormatetcFormat of the data.
pStgmedStorage medium containing the data.

Definition at line 891 of file SAxContainer.h.

◆ OnDefWindowMessage()

template<class T>
STDMETHOD ActiveXSite< T >::OnDefWindowMessage ( UINT msg,
WPARAM wParam,
LPARAM lParam,
LRESULT * plResult )
inline

Handle a default window message for the control.

Parameters
msgMessage identifier.
wParamWPARAM for the message.
lParamLPARAM for the message.
plResultPointer to receive the result of the message processing.
Returns
S_OK if the message is processed successfully.

Definition at line 672 of file SAxContainer.h.

◆ OnFocus()

template<class T>
STDMETHOD ActiveXSite< T >::OnFocus ( BOOL fGotFocus)
inline

Notify the control of focus change.

Parameters
fGotFocusBoolean indicating if the control got focus.
Returns
HRESULT indicating success or failure.

Definition at line 519 of file SAxContainer.h.

◆ OnInPlaceActivate()

template<class T>
STDMETHOD ActiveXSite< T >::OnInPlaceActivate ( void )
inline

Activate the control in-place.

Returns
S_OK if the control is activated successfully, otherwise an error code.

Definition at line 742 of file SAxContainer.h.

◆ OnInPlaceActivateEx()

template<class T>
STDMETHOD ActiveXSite< T >::OnInPlaceActivateEx ( BOOL * pfNoRedraw,
DWORD dwFlags )
inline

Activate the control in-place with extended options.

Parameters
pfNoRedrawPointer to a boolean indicating if redrawing should be suppressed.
dwFlagsFlags specifying activation options.
Returns
S_OK if the control is activated successfully, otherwise an error code.

Definition at line 685 of file SAxContainer.h.

◆ OnInPlaceDeactivate()

template<class T>
STDMETHOD ActiveXSite< T >::OnInPlaceDeactivate ( void )
inline

Deactivate the control in-place.

Returns
S_OK if the control is deactivated successfully.

Definition at line 816 of file SAxContainer.h.

◆ OnInPlaceDeactivateEx()

template<class T>
STDMETHOD ActiveXSite< T >::OnInPlaceDeactivateEx ( BOOL )
inline

Deactivate the control in-place with extended options.

Parameters
fNoRedrawBoolean indicating if redrawing should be suppressed.
Returns
S_OK if the control is deactivated successfully.

Definition at line 713 of file SAxContainer.h.

◆ OnPosRectChange()

template<class T>
STDMETHOD ActiveXSite< T >::OnPosRectChange ( LPCRECT lprcPosRect)
inline

Handle a change in the position rectangle of the control.

Parameters
lprcPosRectNew position rectangle.
Returns
S_OK if the position rectangle is updated successfully.

Definition at line 844 of file SAxContainer.h.

◆ OnRename()

template<class T>
void ActiveXSite< T >::OnRename ( IMoniker * )
inline

Handle a rename of the object.

Parameters
pmkMoniker of the object.

Definition at line 908 of file SAxContainer.h.

◆ OnSave()

template<class T>
void ActiveXSite< T >::OnSave ( void )
inline

Handle a save operation.

Definition at line 915 of file SAxContainer.h.

◆ OnShowWindow()

template<class T>
STDMETHOD ActiveXSite< T >::OnShowWindow ( BOOL fShow)
inline

Notify the container of a show window event.

Parameters
fShowBoolean indicating if the window is being shown.
Returns
HRESULT indicating success or failure.

Definition at line 447 of file SAxContainer.h.

◆ OnUIActivate()

template<class T>
STDMETHOD ActiveXSite< T >::OnUIActivate ( void )
inline

Activate the control's user interface.

Returns
S_OK if the UI is activated successfully, otherwise an error code.

Definition at line 751 of file SAxContainer.h.

◆ OnUIDeactivate()

template<class T>
STDMETHOD ActiveXSite< T >::OnUIDeactivate ( BOOL )
inline

Deactivate the control's user interface.

Parameters
fUndoableBoolean indicating if the deactivation can be undone.
Returns
S_OK if the UI is deactivated successfully.

Definition at line 807 of file SAxContainer.h.

◆ OnViewChange()

template<class T>
void ActiveXSite< T >::OnViewChange ( DWORD ,
LONG  )
inline

Handle a change in view.

Parameters
dwAspectAspect of the view.
lindexIndex of the view.

Definition at line 900 of file SAxContainer.h.

◆ OnWindowMessage()

template<class T>
LRESULT ActiveXSite< T >::OnWindowMessage ( UINT uMsg,
WPARAM wParam,
LPARAM lParam )
inline

Handle a window message for the ActiveX control.

Parameters
uMsgMessage identifier.
wParamWPARAM for the message.
lParamLPARAM for the message.
Returns
LRESULT indicating success or failure.

Definition at line 340 of file SAxContainer.h.

◆ QueryInterface2()

template<class T>
STDMETHOD ActiveXSite< T >::QueryInterface2 ( REFIID iid,
void ** object )
inline

Query for an interface.

Parameters
iidIID of the interface to query.
objectPointer to receive the interface.
Returns
HRESULT indicating success or failure.

Definition at line 356 of file SAxContainer.h.

◆ ReleaseDC()

template<class T>
STDMETHOD ActiveXSite< T >::ReleaseDC ( HDC hDC)
inline

Release a previously obtained device context.

Parameters
hDCDevice context to be released.
Returns
HRESULT indicating success or failure.

Definition at line 610 of file SAxContainer.h.

◆ RequestNewObjectLayout()

template<class T>
STDMETHOD ActiveXSite< T >::RequestNewObjectLayout ( void )
inline

Request a new object layout.

Returns
HRESULT indicating success or failure.

Definition at line 457 of file SAxContainer.h.

◆ RequestUIActivate()

template<class T>
STDMETHOD ActiveXSite< T >::RequestUIActivate ( void )
inline

Request UI activation for the control.

Returns
S_OK if the request is successful.

Definition at line 723 of file SAxContainer.h.

◆ SaveObject()

template<class T>
STDMETHOD ActiveXSite< T >::SaveObject ( void )
inline

Save the object.

Returns
HRESULT indicating success or failure.

Definition at line 391 of file SAxContainer.h.

◆ Scroll()

template<class T>
STDMETHOD ActiveXSite< T >::Scroll ( SIZE )
inline

Scroll the control.

Parameters
scrollExtantSize of the scroll.
Returns
HRESULT indicating success or failure.

Definition at line 797 of file SAxContainer.h.

◆ ScrollRect()

template<class T>
STDMETHOD ActiveXSite< T >::ScrollRect ( INT ,
INT ,
LPCRECT ,
LPCRECT  )
inline

Scroll a rectangle of the control.

Parameters
dxHorizontal scroll amount.
dyVertical scroll amount.
pRectScrollRectangle to be scrolled.
pRectClipClipping rectangle.
Returns
HRESULT indicating success or failure.

Definition at line 649 of file SAxContainer.h.

◆ SetAxHost()

template<class T>
void ActiveXSite< T >::SetAxHost ( IAxHostDelegate * pAxHost)
inline

Set the delegate for ActiveX host operations.

Parameters
pAxHostPointer to the delegate.

Definition at line 116 of file SAxContainer.h.

◆ SetCapture()

template<class T>
STDMETHOD ActiveXSite< T >::SetCapture ( BOOL fCapture)
inline

Set or release the mouse capture for the control.

Parameters
fCaptureBoolean indicating if the capture should be set.
Returns
S_OK if the operation is successful.

Definition at line 558 of file SAxContainer.h.

◆ SetExtent()

template<class T>
HRESULT ActiveXSite< T >::SetExtent ( int width,
int height )
inlineprotected

Set the extent (size) of the control.

Parameters
widthWidth of the control in pixels.
heightHeight of the control in pixels.
Returns
HRESULT indicating success or failure.

Definition at line 933 of file SAxContainer.h.

◆ SetExternalUIHandler()

template<class T>
void ActiveXSite< T >::SetExternalUIHandler ( IDocHostUIHandler * pUiHandler)
inline

Set the external UI handler for the ActiveX control.

Parameters
pUiHandlerPointer to the UI handler.

Definition at line 125 of file SAxContainer.h.

◆ SetFocus()

template<class T>
STDMETHOD ActiveXSite< T >::SetFocus ( BOOL fFocus)
inline

Set or release focus for the control.

Parameters
fFocusBoolean indicating if the focus should be set.
Returns
S_OK if the operation is successful.

Definition at line 582 of file SAxContainer.h.

◆ ShowObject()

template<class T>
STDMETHOD ActiveXSite< T >::ShowObject ( void )
inline

Show the object.

Returns
HRESULT indicating success or failure.

Definition at line 426 of file SAxContainer.h.

◆ ShowPropertyFrame()

template<class T>
STDMETHOD ActiveXSite< T >::ShowPropertyFrame ( void )
inline

Show the property frame for the control.

Returns
HRESULT indicating success or failure.

Definition at line 529 of file SAxContainer.h.

◆ TransformCoords()

template<class T>
STDMETHOD ActiveXSite< T >::TransformCoords ( POINTL * ,
POINTF * ,
DWORD  )
inline

Transform coordinates between container and control.

Parameters
pPtlHimetricSource coordinates in HIMETRIC.
pPtfContainerDestination coordinates in container.
dwFlagsFlags specifying the transformation.
Returns
HRESULT indicating success or failure.

Definition at line 498 of file SAxContainer.h.

◆ TranslateAccelerator()

template<class T>
STDMETHOD ActiveXSite< T >::TranslateAccelerator ( MSG * ,
DWORD  )
inline

Translate an accelerator key.

Parameters
pMsgMessage structure.
grfModifiersModifiers for the key.
Returns
HRESULT indicating success or failure.

Definition at line 509 of file SAxContainer.h.


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