>This VFP5 implementation of inheritance for ActiveX components seems incorrect.
>
>I created a class based on the MS TreeView. I then sub-classed that class. I replaced the MS TreeView with another TreeView in my base class. But all the derived classes still refer to the old treeview.
>
>Am I missing anything here? Isn't this a fundamentally bad implementation of inheritance. Is there any way around this? I tried to simply edit the derived class, hoping that this would re-sync the OLE info, but it does not. How the heck do I fix the derived classes?
A hack: open directly the VCX file, and fix the CLASS and CLASSLOC fields for your subclasses, so they refer to your treeview.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement