CWindow::Detach
분리 m_hWnd 에서 CWindow 개체와 세트 m_hWnd 에 NULL.
HWND Detach( ) throw();
반환 값
HWND 연관 된 CWindow 개체.
예제
//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();
요구 사항
헤더: atlwin.h