DOC: CDC::GetWindow() Is Documented but Not Available (131947)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.0a
- Microsoft Visual C++ 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2b
- 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 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2b
- 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
- Microsoft Foundation Classes (MFC)
This article was previously published under Q131947 SUMMARY
The online documentation for Microsoft Visual C++ versions 2.0 and 2.1 has
entries for the member function CDC::GetWindow(). However, an attempt to
use this function results in an unresolved external error.
The documentation is in error. The function was not implemented in versions
2.0 or 2.1. This function has been implemented in Visual C++ version 2.2.
NOTE: You can obtain the same functionality using the Windows API function
::WindowFromDC. For example:
CWnd *pWnd = CWnd::FromHandle(::WindowFromDC(pDC->m_hDC);
NOTE: This problem was fixed in Microsoft Visual C++ version 4.0 and later.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbBug kbdocerr kbdocfix kbVC400fix KB131947 |
---|
|