Solved

Menu???

Posted on 1998-10-21
1
200 Views
Last Modified: 2013-11-20
Hi,

I want to ask how to enable/disable the item at the menu.
eg. I want to disable one item after opening a document.
    Then enable this item after closing this document.
How can I do this?

Thanks.
0
Comment
Question by:cplau
1 Comment
 
LVL 1

Accepted Solution

by:
Bridge earned 40 total points
ID: 1323620
put this in you document cpp;

ON_UPDATE_COMMAND_UI(ID_???, OnUpdate???)

void CDocumentOverride::OnUpdate???(CCmdUI* pCmdUI)
{
   pCmdUI->Enable( FALSE );
}

put this in you document h;

afx_msg void OnUpdate???(CCmdUI* pCmdUI);
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
xyBalance chalenge 58 88
Pressing cancel button with C# UI Automation 3 51
abstract class with all non abstract mentods 6 76
how to split multiple lines delimiter : 8 78
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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 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.
A short film showing how OnPage and Connectwise integration works.

914 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

21 Experts available now in Live!

Get 1:1 Help Now