• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1128
  • Last Modified:

Working with toolbars (CToolBar) in MFC SDI application.

I create a basic SDI application using the wizard in Visual Studio 6.0

By default the toolbar buttons for "Cut" "Copy" and "Paste" are disabled. How can I make these toolbar buttons enables by default.

Also If I add my own toolbar, all the buttons in it are disabled by default. How can i enable them when the app starts.

Thanks
0
ittijindani
Asked:
ittijindani
1 Solution
 
migelCommented:
Hi!
These grey buttons apperas due to MFC not found command handlers for they.
Just define command handlers methods in the your MainFrame window.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now