How to handle events for ActiveX controls in a CWnd dialog template in Visual C++ (147740)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q147740 SUMMARY ActiveX controls are most often used in MFC CDialog or CFormView derived classes. There are occasions that call for an ActiveX
control to be a child of a window that is not associated with a dialog
template, such as a CWnd. Adding event handlers for a control created as a child of a CWnd requires a slightly different approach than adding the same
handlers for the control when placed on a dialog box. This article provides
step-by-step instructions for adding event handlers to the CWnd derived class that parents the control. REFERENCES "MFC 4.0 Helps You Contain Your OLE Controls," MSDN Nov/Dec
1995.
OLE Control Containers: Using AppWizard to Create a Container
Application
OLE Control Containers: Programming OLE Controls in an
OLE Control Container - Visual C++ Books Online, MFC Encyclopedia
Modification Type: | Major | Last Reviewed: | 9/7/2005 |
---|
Keywords: | kbcode kbContainer kbCtrl kbhowto KB147740 kbAudDeveloper |
---|
|