Solved

How do I enable menus items all the time

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 32
dog bark java program 15 95
centeredAverage challenge 8 166
Window placement 17 83
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

809 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