Share via


CAxWindow Class

This class provides methods for manipulating a window hosting an ActiveX control.

Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

class CAxWindow : public CWindow

Members

Methods

AttachControl

Attaches an existing ActiveX control to the CAxWindow object.

CAxWindow

Constructs a CAxWindow object.

CreateControl

Creates an ActiveX control, initializes it, and hosts it in the CAxWindow window.

CreateControlEx

Creates an ActiveX control and retrieves an interface pointer (or pointers) from the control.

GetWndClassName

(Static) Retrieves the predefined class name of the CAxWindow object.

QueryControl

Retrieves the IUnknown of the hosted ActiveX control.

QueryHost

Retrieves the IUnknown pointer of the CAxWindow object.

SetExternalDispatch

Sets the external dispatch interface used by the CAxWindow object.

SetExternalUIHandler

Sets the external IDocHostUIHandler interface used by the CAxWindow object.

Operators

operator =

Assigns an HWND to an existingCAxWindow object.

Remarks

This class provides methods for manipulating a window that hosts an ActiveX control. The hosting is provided by "AtlAxWin80", which is wrapped by CAxWindow.

Class CAxWindow is implemented as a specialization of the CAxWindowT class. This specialization is declared as:

typedef CAxWindowT<CWindow> CAxWindow;

If you need to change the base class, you can use CAxWindowT and specify the new base class as a template argument.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

Concepts

ATLCON Sample

Composite Control Fundamentals

ATL Control Containment FAQ

Other Resources

ATL Class Overview