CWindow::desanexar

Desanexa m_hWnd from the CWindow objeto e conjuntos m_hWnd para NULO.

HWND Detach( ) throw();

Valor de retorno

The HWND associado com o CWindow objeto.

Exemplo

//The following example attaches an HWND to the CWindow object and 
//later detaches the CWindow object from the HWND when no longer needed

CWindow myWindow;
myWindow.Attach(hWnd);

//call CWindow wrappers

//We don't need the C++ object any more, so detach it from the HWND.
myWindow.Detach(); 

Requisitos

Cabeçalho: atlwin.h

Consulte também

Referência

Classe CWindow

CWindow::anexar

Outros recursos

CWindow membros