Solved

Creating new class..

Posted on 1998-10-31
2
166 Views
Last Modified: 2013-11-20
i know you can add new classes by going to the class wizard and filling in the dialog box.. is there a way to derive from a class if the class isn't listed in that dialog box? i mean, i know i can do it by hand, but then the class isn't listed in class wizard..

specifically, i want to derive a class from CodeGuru's CCtrolBarEx found in the mfcxlib.. it just seems like a pain to have to over ride all the virtual functions by hand..
0
Comment
Question by:rabbitears
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 50 total points
ID: 1324101
Go to menu item "Insert" submenu "Class....", then move the list box entry from "MFC class" to "Generic Class".  Now you can type a name for your new class and enter anything you want in the "Derived from" list box.  You will have to manually add the include file to point to the h file of the class you're deriving from.  Sorry it won't know about the virtual functions from your parent class though.
0
 

Author Comment

by:rabbitears
ID: 1324102
guess that will work..
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 85
not able to insert into temp table 68 150
Named range not carried over 10 57
zeroFront challenge 7 71
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now