Udostępnij za pośrednictwem


CWindow::Detach

Odłącza m_hWnd z CWindow obiektu i zestawy m_hWnd do NULL.

HWND Detach( ) throw();

Wartość zwracana

HWND Związane z CWindow obiektu.

Przykład

//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(); 

Wymagania

Nagłówek: atlwin.h

Zobacz też

Informacje

Klasa CWindow

CWindow::Attach