Re: Subclassing main window?
It's not recommended at all, that could generate conflicts and maybe infinite loops, and the window won't be unsubclassed.
You should attach rdPtr as a property to the window with SetProp and retrieve it with GetProp (basically that's a part of what the subclass function of the runtime does).
Note that there will be a problem if there could be several instances of your object in the frame. In this case you have to attach a list of rdPtr to the window.
Re: Subclassing main window?
Ah, thanks for the information :). Makes sense now.