Observação
O acesso a essa página exige autorização. Você pode tentar entrar ou alterar diretórios.
O acesso a essa página exige autorização. Você 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