Solved

How do I enable menus items all the time

Posted on 1998-10-20
1
151 Views
Last Modified: 2013-11-20
Hello,

I have a problem with the menu system. I have a menu handler
in my view class which brings up a dialog box. I am drawing an object to the viewport which I can rotate with the mouse.  Although I have added an update handler     pCmdUI->Enable(TRUE);
the menu item does not work until I move the object with the
mouse.

Also, the print and print preview are grayed out until I move the object. I would like all of these menu items always enabled.

The view is part of a splitter pane with a formview dialog
as a control bar in the other pane.

If anyone knows of a fix I would greatly appreciate the help.

Thanks in advance,

Joe
joefinn@rcn.com
0
Comment
Question by:joefinn
1 Comment
 
LVL 8

Accepted Solution

by:
Answers2000 earned 100 total points
ID: 1323596
The problem is you have 2 views.  

Each view can have different menu enabling logic.  When the view without the menu updating stuff is the active view, it gets asked whether to enable the menus or not (and you don't have code in the 2nd view).

To fix:
EITHER
- put menu updating logic into both views
OR
- put menu updating logic into the document
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CRON statement to run every 3 minutes except on Monday morning 12am to 2am 7 89
matchUp  challenge 9 91
Path of Workbook 3 59
x-bar in Google Sheets 2 24
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

929 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