CWnd::PreSubclassWindow
This member function is called by the framework to allow other necessary subclassing to occur before the window is subclassed.
virtual void PreSubclassWindow( );
Remarks
Overriding this member function allows for dynamic subclassing of controls. It is an advanced overridable.
Requirements
Header: afxwin.h