Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to create customize toolbars dynamically using vc++ Collapse All
Subject Author Date
VENKATA RAMA KRISHNA K Jun 12, 2008 - 6:39 AM

Hello All,

          I am using Microsoft Visual Studio 2005. I have to create a dialog box upon which i should be able to add or delete different toolbars dynamically during runtime in VC++.  It is something similar to the customize toolbar option in the tools menu in Microsoft Word Document, where we can add or delete different toolbar options dynamically. So, how can i do the same thing in VC++. 

Technical Support Jun 13, 2008 - 4:05 AM

Many MFC programmers believe that dialog windows and frame windows are completely different. But both of them are simply windows with child windows. Please try not to see differences between dialogs and frames. Of course, there are limitations in MFC which we cannot be avoided. For instance, you can create re-dockable control bars in frame windows only. So, you can create an SDI frame based MFC project and create a child dialog or a form view in it instead of a simple CWnd-based child view. The main frame window will contain toolbars when the child dialog window will contain everything else you need. If you already have a dialog based project, then you can convert its dialog template resource into a child type without borders and caption, add the main frame class and create a child dialog inside the main frame.