Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Toolbar & Menu in SDI app

Posted on 2003-03-21
Medium Priority
Last Modified: 2013-11-20
I have an explorer-style SDI app and would like to make use of the CUT/COPY/PASTE functionality found in the toolbar and menu.

Currently all these buttons are disabled and frankly I don't know how to activate and control them.

Additionally I would like to change both the toolbar buttons and the menu cut/copy/paste buttons with one function - rather than doing it twice (for the toolbar and the menu).

Thank you.
Question by:FlorianJaeger
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
  • 2
LVL 12

Accepted Solution

williamcampbell earned 500 total points
ID: 8182147

 You will need to add Command Handlers for the 3 menus items.
 Open Class Wizard
 Choose CMainFrame in 'ClassName'
 In Object ID"s Choose ID_EDIT_COPY
 In Messages Double Click Command
 Double Click Update_Command_UI

 In Update Command UI
 pCmdUI->Enable ( TRUE );

 Do the same for each

 Recompile. They should now be enabled in menu and toolbar.

Author Comment

ID: 8184787
Thanks William, that worked great. I have another puzzle coming up (that one was easy) ...
LVL 12

Expert Comment

ID: 8184811

 Bring it on :)

Author Comment

ID: 8184828
I will - still typing ... I just can't seem to figure it out - this SDI stuff is just crazy. ;--)

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

722 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