Solved

Place a ToolBar control in a DialogBar?

Posted on 1998-04-30
2
267 Views
Last Modified: 2013-12-03
I want to make a DialogBar with  many bitmap buttons with checked sytle.I think Toolbar can realize image buttons with checked sytle easly,so I put a ToolBar class in a CDialogBar class.But when I realize it all, I can see the image bottons(toolbar) at all!
Why?Can I put a ToolBar control in a CDialogBar?
0
Comment
Question by:lcy
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1397917
Add member variable of type CToolBar to your CDialogBar derived class. Override OnCreate message handler in CDialogBar derived class and create toolbar the same way it is created inside CMainFrame::OnCreate.
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 1397918
You should use CToolBarCtrl, not CToolBar.

.B ekiM

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

813 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

11 Experts available now in Live!

Get 1:1 Help Now