Solved

Menu option disabling

Posted on 1998-11-07
2
170 Views
Last Modified: 2013-11-20
How does one disable the menu options in an SDI from the View
0
Comment
Question by:huya
[X]
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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Window placement 17 95
Annoying "thing" blocks my view 4 130
firstChar challenge 13 132
wordmultiple challenge 12 155
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

763 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