Just crate a subclass in the ClasWizard, then use this as your class
type. Avoids SubClassWindow having to be explicitly used.
joe
Quote:
>Hi,
>How do we accomplish dynamic subclassing using CWnd/CFrameWnd derived
>classes? I understand something called "SubclassWindow" exists. What I
>need to do is that a child window must sub-class the parent window to
>intercept a few messages and perform pre-processing, i.e., the child window,
>after doing its thing must delegate the call to the original "WndProc" so
>that the original functionality is retained.
>Using Win32, this is a simple issue. How can this be done using MFC?
>Thanks a lot.
>:).
>--
>Ranju. V
Joseph M. Newcomer [MVP]
Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm