?
Solved

Creating new class..

Posted on 1998-10-31
2
Medium Priority
?
211 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 100 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

770 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