Nice and helpful tip. Thanks a lot. Now I'm porting existing code to VC++.Net and noticed that the same approach doesn't work anymore. At least I couldn't map CPropertyPageEx derived calss messages using IDE's standard means (Control events).
i have a very complicated task..
i want to create thumb nail preview of html documents
in dialog based mfc application in vc
if u have any idea abt this subject plz mail me
at the following address
Although this trick will fool it into letting you add handlers (which is awesome by the way), if you have overridden any of the handlers in your base class, they will not be called as a result but, if you are careful you will catch it. For example, if in your base class you have overridden OnSetActive so you have CBaseClass::OnSetActive and then you define the macro
and your call to the overridden OnSetActive() is completely lost because it calls the CPropertyPage's OnSetActive(). So, be careful and make sure you correct these or else you may get undesired results.
Nice idea to solve a problem. A more thorough way to fool the system is to copy, then comment out, the original line and comment the reason for the change. That way the original can be easily restored if an upgrade bombs the trick. You want to fool the system, not your co-workers or yourself.
i came across this problem,but i solved in the same way.but i saw this site today only.s/w giant microsoft is
having lot of bugs,because they are releasing products very quicly
nice idea indeed,to fool the products.