Nota
O acesso a esta página requer autorização. Pode tentar iniciar sessão ou alterar os diretórios.
O acesso a esta página requer autorização. Pode tentar alterar os diretórios.
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