CWindow::Attach
Collega la finestra identificata da hWndNewoggetto CWindow.
void Attach(
HWND hWndNew
) throw();
Parametri
- hWndNew
[in] handle a una finestra.
Esempio
//The following example attaches an HWND to the CWindow object
HWND hWnd = ::GetDesktopWindow();
CWindow myWindow;
myWindow.Attach(hWnd);
Requisiti
Header: atlwin.h