We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Call this member function to set WndProc back to its original value and detach the window identified by HWND from the CWnd object.

HWND UnsubclassWindow( );

A handle to the unsubclassed window.

See the example for CWnd::SubclassWindow.

Header: afxwin.h