Delegate interface for ActiveX host operations.
More...
#include <SAxContainer.h>
|
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.
|
|
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.
◆ 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
-
pCtrl | Pointer 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
-
pRect | Rectangle for which the DC is needed. |
grfFlags | Flags specifying the type of DC. |
phDC | Pointer 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
-
pRect | Rectangle to be invalidated. |
bErase | Boolean indicating if the background should be erased. |
◆ OnAxReleaseDC()
virtual HRESULT IAxHostDelegate::OnAxReleaseDC |
( |
HDC | hdc | ) |
|
|
pure virtual |
Release a previously obtained device context.
- Parameters
-
hdc | Device 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
-
fCapture | Boolean indicating if the capture should be set. |
The documentation for this struct was generated from the following file: