18 friend class SAxContainerImpl;
19 DEF_SOBJECT(
SWindow, L
"activex")
97 return SC_WANTALLKEYS;
119 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST,
OnMouseEvent)
120 MESSAGE_RANGE_HANDLER_EX(WM_KEYFIRST, WM_KEYLAST,
OnKeyEvent)
128 ATTR_DWORD(L
"clsCtx",
m_clsCtx, FALSE)
SActiveX()
Default constructor.
int OnCreate(LPVOID lp)
Called when the window is created.
LRESULT OnMouseEvent(UINT uMsg, WPARAM wp, LPARAM lp)
Called when a mouse event occurs.
BOOL m_bDelayInit
Flag indicating whether the initialization of the ActiveX control should be delayed.
LRESULT OnKeyEvent(UINT uMsg, WPARAM wp, LPARAM lp)
Called when a keyboard event occurs.
CLSID m_clsid
CLSID of the ActiveX control.
virtual UINT WINAPI OnGetDlgCode() const OVERRIDE
Retrieves the dialog code for the window.
void OnShowWindow(BOOL bShow, UINT nStatus)
Called when the window is shown or hidden.
HRESULT OnAttrClsid(const SStringW &strValue, BOOL bLoading)
Handles the "clsID" attribute.
virtual ~SActiveX()
Destructor.
virtual BOOL WINAPI IsFocusable() const OVERRIDE
Checks if the window can receive focus.
void OnPaint(IRenderTarget *pRT)
Called when the window needs to be painted.
virtual void OnAxActivate(IUnknown *pUnknwn)
Called when the ActiveX control is activated.
virtual void OnInitActiveXFinished()
Called when the initialization of the ActiveX control is finished.
void OnSize(UINT nType, CSize size)
Called when the window size changes.
void SetExternalUIHandler(IDocHostUIHandler *pUiHandler)
Sets the external UI handler for the ActiveX control.
IUnknown * GetIUnknown()
Retrieves the IUnknown interface of the ActiveX control.
void SetActiveXVisible(BOOL bVisible)
Sets the visibility of the ActiveX control.
DWORD m_clsCtx
Context in which the ActiveX control should be created.
BOOL InitActiveX()
Initializes the ActiveX control.
SAxContainerImpl * m_axContainer
Pointer to the internal ActiveX container implementation.
A class representing an ASCII string.
Interface for rendering target objects.