Re: Ticks not initially appearing on view menu items

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: TVR Fan (nosuch_at_address.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 09:46:40 +0100


> MFC has a built in infrastructure for managing menu and toolbar state.
> This infrastructure will interfere with your efforts to directly control
> the CMenu. Remove your CMenu code.
>
> Add a message handler for UPDATE_COMMAND_UI associated with the menu
> item. Put something like this in the function:
>
> pCmdUI->SetCheck(m_bSorted);

Aha! Thanks.

--- Al.



Relevant Pages

  • Re: Ticks not initially appearing on view menu items
    ... > MFC has a built in infrastructure for managing menu and toolbar state. ... > This infrastructure will interfere with your efforts to directly control ... Remove your CMenu code. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Ticks not initially appearing on view menu items
    ... > MFC has a built in infrastructure for managing menu and toolbar state. ... > This infrastructure will interfere with your efforts to directly control ... Remove your CMenu code. ...
    (microsoft.public.vc.mfc)