Click here to Skip to main content
16,010,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stupid CEdit problem Pin
3-Jul-02 6:43
suss3-Jul-02 6:43 
GeneralRe: Stupid CEdit problem Pin
Hans Ruck3-Jul-02 6:48
Hans Ruck3-Jul-02 6:48 
GeneralRe: Stupid CEdit problem (solved) Pin
Hans Ruck3-Jul-02 6:51
Hans Ruck3-Jul-02 6:51 
GeneralCAsyncSocket Pin
Wade H.3-Jul-02 6:21
Wade H.3-Jul-02 6:21 
GeneralRe: CAsyncSocket Pin
3-Jul-02 19:11
suss3-Jul-02 19:11 
QuestionCursor ?? Pin
Rage3-Jul-02 6:08
professionalRage3-Jul-02 6:08 
AnswerRe: Cursor ?? Pin
Chris Losinger3-Jul-02 6:52
professionalChris Losinger3-Jul-02 6:52 
Generala CMDUI question Pin
ns3-Jul-02 5:58
ns3-Jul-02 5:58 
I read that to enable/disable a menu item you do the following:

ON_UPDATE_COMMAND_UI(ID_FOO, OnUpdateFoo)

void CMainFrame::OnUpdateFoo(CCmdUI* pCmdUI)
{
pCmdUI->Enable(pObj->GetFoo());
}

Thats okay if I'm enabling or disabling the menu item that got clicked. What if I want to disable say the file/new menu from another menu item2 (say in response to some information that item2 receives)?
AM i missing something?

Thanks,
ns
Confused | :confused:
Generalmore CMDUI questions Pin
ns3-Jul-02 6:11
ns3-Jul-02 6:11 
GeneralRe: more CMDUI questions Pin
ns3-Jul-02 7:22
ns3-Jul-02 7:22 
GeneralRe: a CMDUI - problem resolved! Pin
ns3-Jul-02 8:14
ns3-Jul-02 8:14 
Generalsurface plotting component Pin
3-Jul-02 5:46
suss3-Jul-02 5:46 
GeneralError when creating MFC wizard app with MS VisualC++ .NET Pin
rsasalm_3-Jul-02 5:14
rsasalm_3-Jul-02 5:14 
Generalclasses vanishing from class view!!! Pin
ns3-Jul-02 5:14
ns3-Jul-02 5:14 
GeneralRe: classes vanishing from class view!!! Pin
Michael P Butler3-Jul-02 5:19
Michael P Butler3-Jul-02 5:19 
GeneralRe: classes vanishing from class view!!! Pin
Alan Chambers3-Jul-02 5:35
Alan Chambers3-Jul-02 5:35 
GeneralRe: classes vanishing from class view!!! Pin
ns3-Jul-02 5:39
ns3-Jul-02 5:39 
GeneralRe: classes vanishing from class view!!! Pin
Alan Chambers3-Jul-02 5:46
Alan Chambers3-Jul-02 5:46 
GeneralRe: classes vanishing from class view!!! Pin
3-Jul-02 5:38
suss3-Jul-02 5:38 
GeneralRe: classes vanishing from class view!!! Pin
benjymous3-Jul-02 5:42
benjymous3-Jul-02 5:42 
GeneralA very easy way to fix it Pin
Abin3-Jul-02 6:34
Abin3-Jul-02 6:34 
GeneralRe: A very easy way to fix it Pin
Alan Chambers3-Jul-02 8:53
Alan Chambers3-Jul-02 8:53 
GeneralNo Pin
Abin3-Jul-02 13:11
Abin3-Jul-02 13:11 
GeneralWANTED: Urgent help with Direct3D Pin
Alan Chambers3-Jul-02 5:11
Alan Chambers3-Jul-02 5:11 
GeneralRe: No Wonder Pin
Alan Chambers3-Jul-02 10:54
Alan Chambers3-Jul-02 10:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.