How to retrieve the actual parent window of an ActiveX control (150204)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.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 Q150204 SUMMARY An ActiveX control is created as a child of the window of
the container most closely associated with the site object. This article
describes how to obtain the parent window of an ActiveX control, and why
calling GetParent or CWnd::GetParent for an ActiveX control may not return its
actual parent window. REFERENCES- Online Documentation for IOleWindow::GetWindow
- MFC source code for COleControl::OnActivateInPlace and
COleControl::CreateControlWindow.
Modification Type: | Major | Last Reviewed: | 9/1/2005 |
---|
Keywords: | kbProperties kbCtrl kbDlg kbhowto KB150204 kbAudDeveloper |
---|
|