Solved

toolbar for child frame

Posted on 2006-10-25
5
466 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now