Compartir a través de


CWindow::Attach

Asocia la ventana identificada por hWndNew al objeto de CWindow .

void Attach(
   HWND hWndNew 
) throw();

Parámetros

  • hWndNew
    [in] El identificador de una ventana.

Ejemplo

//The following example attaches an HWND to the CWindow object
HWND hWnd  = ::GetDesktopWindow();
CWindow myWindow;
myWindow.Attach(hWnd);

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow

CWindow::Detach