Solved

Creating new class..

Posted on 1998-10-31
2
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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