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

x
?
Solved

How do I enable menus items all the time

Posted on 1998-10-20
1
Medium Priority
?
163 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Suggested Courses

916 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