The text written earlier is a little simple. Here I will explain the problem in detail:
In the VC ++ environment, you can use the classwizard Wizard to create your own classes from the MFC class. For example, we can derive a subclass of ctreectrl to implement our own tree control. However, not every class of MFC can be found in classwizard, such as csplitterwnd class. You can manually write your own classes from such a class according to the C ++ syntax rules.CodeIn this way, classwizard cannot be easily used to add messages of the class and overwrite the virtual function. So here is another method:In the newclass dialog box, select MFC class in classtype and generic cwnd in base class for derivation,Then manually change the base class of the newly added class to the required cwnd subclass, for example:
First, it is derived as follows: Class cusefulsplitterwnd: Public cwnd
Then manually change it to: Class cusefulsplitterwnd: Public csplitterwnd
Of course, there may be more than one place to manually modify. Other MFC classes can also be processed as follows :)
Source:Http://aip.javaeye.com/blog/98952Thanks for sharing AIP.