Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Menu option disabling

Posted on 1998-11-07
2
Medium Priority
?
174 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

824 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