CWindow::IsWindow
Determines whether the specified window handle identifies an existing window.
BOOL IsWindow( ) throw();
Remarks
See IsWindow in the Windows SDK.
Example
//The following example attaches an HWND to the CWindow object and
//calls CWindow::IsWindow() to verify if the HWND corresponds
//to an existing window
CWindow myWindow;
myWindow.Attach(hWnd);
BOOL bWindow = myWindow.IsWindow();
Requirements
Header: atlwin.h