Solved

Menu option disabling

Posted on 1998-11-07
2
168 Views
Last Modified: 2013-11-20
How does one disable the menu options in an SDI from the View
0
Comment
Question by:huya
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
thresher_shark earned 50 total points
ID: 1324345
Answer coming...
0
 
LVL 6

Expert Comment

by:thresher_shark
ID: 1324346
To disable an item on a menu, use something like the following:

GetMenu ()->EnableMenuItem (ITEM_ON_MENU_YOU_WANT_DISABLED, MF_GRAYED);

You can put that code anywhere in your view class that you want it disabled.  Note that you can do a great deal of menu manipulation using the GetMenu ()->EnableMenuItem pair.  You might consider looking those functions up in the help as they can allow a great deal of flexibility.

If you have any further questions regarding this, please feel free to ask.  Thanks!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
How to know only "File created" with EventLog 3 34
centeredAverage challenge 8 159
sum13 challenge 24 104
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

816 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

10 Experts available now in Live!

Get 1:1 Help Now