Solved

toolbar for child frame

Posted on 2006-10-25
5
487 Views
Last Modified: 2013-11-20
Hi,

I have an MDI application. Is it possible to make a toolbar inside one of my child frames? I don't mean a toolbar as part of MainFrm, but actually embedded inside the child frame at the top. I know this may contradict the MDI framework, just wondering if it's possible. Any examples?

Thanks
0
Comment
Question by:DJ_AM_Juicebox
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:bdunz19
ID: 17806404
Hi DJ AM,

I would just create a normal toolbar as a child of your View Window. So when your view is created ON_WM_CREATE(), just create a child CToolBar of your view.

Here are a lot of tutorials on createing toolbars: http://www.codeproject.com/docking/#Toolbars

Good luck,
Brandon
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 17809946
I think bdunz19 means as a child of the ChidFrame not the view.

(Have a look at the code to create the toolbar that is part of the main frame of your app).
0
 
LVL 4

Expert Comment

by:bdunz19
ID: 17813870
Yes Andy is right. If it was part of the view, it would work but it would be under the frame border. My mistake, you want it to be a child of your Child Frame so that it will be above your view edge.

Thanks Andy
0
 
LVL 4

Expert Comment

by:bdunz19
ID: 17853771
I don't understand how I did not get the points for this question??
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 17856457
Giving a correct answer helps.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Complete beginner needs help making a cron job 9 116
maven archtype selection in eclipse 1 57
unix example issues 18 89
Message not shown 5 49
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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. …
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

785 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