?
Solved

Place a ToolBar control in a DialogBar?

Posted on 1998-04-30
2
Medium Priority
?
281 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
[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 7

Accepted Solution

by:
galkin earned 200 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

777 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