CWindow::Attach
附加 hWndNew 确定的窗口。CWindow 对象。
void Attach(
HWND hWndNew
) throw();
参数
- hWndNew
[in]窗口的句柄。
示例
//The following example attaches an HWND to the CWindow object
HWND hWnd = ::GetDesktopWindow();
CWindow myWindow;
myWindow.Attach(hWnd);
要求
Header: atlwin.h