Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I build a base control class and use C++ inheritance to derive other controls?

0
Posted

Can I build a base control class and use C++ inheritance to derive other controls?

0

Yes, it can be done and is fairly easy. The tricky part involves setting up the MFC-based macros that are used by AppWizard and ClassWizard. When deriving from the base class you have to cut-and-paste to build the ODL file properly, use specific base-class DISPIDs, etc. All of this is explained in detail in Microsoft Knowledgebase article Q138411. An example is also provided (SHAPES2.EXE) that illustrates the techniques.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123