Menu???

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.
cplauAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
BridgeConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.