Solved

Menu option disabling

Posted on 1998-11-07
2
165 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

15 Experts available now in Live!

Get 1:1 Help Now