soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
IAxHostDelegate Struct Referenceabstract

Delegate interface for ActiveX host operations. More...

#include <SAxContainer.h>

Public Member Functions

virtual HWND GetAxHostWindow () const =0
 Get the window handle of the ActiveX host.
 
virtual void OnAxActivate (IUnknown *pCtrl)=0
 Notify the host that the ActiveX control is being activated.
 
virtual void OnAxInvalidate (LPCRECT pRect, BOOL bErase)=0
 Notify the host that the ActiveX control needs to be invalidated.
 
virtual void OnAxSetCapture (BOOL fCapture)=0
 Notify the host to set or release the mouse capture.
 
virtual HRESULT OnAxGetDC (LPCRECT pRect, DWORD grfFlags, HDC *phDC)=0
 Get a device context for the ActiveX control.
 
virtual HRESULT OnAxReleaseDC (HDC hdc)=0
 Release a previously obtained device context.
 

Detailed Description

Delegate interface for ActiveX host operations.

This interface defines methods that the ActiveX host must implement to provide necessary functionality for the ActiveX control.

Definition at line 24 of file SAxContainer.h.

Member Function Documentation

◆ GetAxHostWindow()

virtual HWND IAxHostDelegate::GetAxHostWindow ( ) const
pure virtual

Get the window handle of the ActiveX host.

Returns
Window handle of the ActiveX host.

◆ OnAxActivate()

virtual void IAxHostDelegate::OnAxActivate ( IUnknown * pCtrl)
pure virtual

Notify the host that the ActiveX control is being activated.

Parameters
pCtrlPointer to the ActiveX control.

◆ OnAxGetDC()

virtual HRESULT IAxHostDelegate::OnAxGetDC ( LPCRECT pRect,
DWORD grfFlags,
HDC * phDC )
pure virtual

Get a device context for the ActiveX 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.

◆ OnAxInvalidate()

virtual void IAxHostDelegate::OnAxInvalidate ( LPCRECT pRect,
BOOL bErase )
pure virtual

Notify the host that the ActiveX control needs to be invalidated.

Parameters
pRectRectangle to be invalidated.
bEraseBoolean indicating if the background should be erased.

◆ OnAxReleaseDC()

virtual HRESULT IAxHostDelegate::OnAxReleaseDC ( HDC hdc)
pure virtual

Release a previously obtained device context.

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

◆ OnAxSetCapture()

virtual void IAxHostDelegate::OnAxSetCapture ( BOOL fCapture)
pure virtual

Notify the host to set or release the mouse capture.

Parameters
fCaptureBoolean indicating if the capture should be set.

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