Solved

toolbar for child frame

Posted on 2006-10-25
5
506 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
[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
  • 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 115
countEvens challenge 2 116
fizzArray2 challenge 1 109
Trying to run powershell  in a batch file. How do I do this? 8 122
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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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…

742 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