Solved

How do I enable menus items all the time

Posted on 1998-10-20
1
158 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
[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
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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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…
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

635 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