How to Get Container hWnd from Windowless Custom OLE Control (153582)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q153582 SUMMARY
An OLE control that is invisible at run time does not have a window handle.
Hence the GetParent() Windows API function cannot be used to obtain the
hWnd of the container's window. This article shows how you can implement a
read-only hWndParent property for a custom OLE control that returns the
container window's hWnd.
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kbcode KB153582 |
---|
|