Home | Overview | How Do I | Tutorial | Sample
The easiest way to access an ActiveX control from within its control container application is to associate the ActiveX control with a member variable of the dialog class that will contain the control.
Note This is not the only way to access an embedded control from within a container class, but for the purposes of this article it is sufficient.
Adding a member variable to the dialog class
CContainerDlg
.IDC_CIRC2CTRL1
.The Add Member Variable dialog box appears.
For example, m_circ2ctl
.
The Variable Type edit box automatically contains the name of the control wrapper class.
Note Additional entries in the Category drop-down list box are for exposed properties of the ActiveX control.