Solved

Creating new class..

Posted on 1998-10-31
2
184 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Include multiple hostnames in this command? 3 55
not able to insert into temp table 68 162
dog bark java program 15 94
firstChar challenge 13 114
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

805 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