CWindow::IsWindow

确定指定的窗口句柄是否标识现有的窗口。

BOOL IsWindow( ) throw();

备注

在参见 Windows SDK的 IsWindow

示例

//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();

要求

Header: atlwin.h

请参见

参考

CWindow选件类

CWindow::IsWindowEnabled

CWindow::IsWindowVisible

CWindow::IsWindowUnicode

CWindow::IsParentDialog