Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Hom to check a subMenu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hom to check a subMenu

 Post Reply Post Reply
Author
Message
Zauz View Drop Down
Newbie
Newbie


Joined: 20 August 2004
Location: France
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zauz Quote  Post ReplyReply Direct Link To This Post Topic: Hom to check a subMenu
    Posted: 20 August 2004 at 10:50am
Hi,
I'm looking to check dynamically a subMenu. And I can't find what's working.
Can someone help me please ???

Thanks a lot for your answer
zauz :)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2004 at 6:50am

See FAQ.

 

From FAQ:

 

Question:
How do I handle ON_COMMAND and ON_UPDATE_COMMAND_UI messages?

Answer:
(part I) using ON_UPDATE_COMMAND_UI

Xtreme Command Bars supports the classic MFC updating mechanism using the ON_UPDATE_COMMAND_UI macro.  For example, to make a menu or toolbar command item checked you would add the following code:

BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
    //{{AFX_MSG_MAP(CMainFrame)
    ...
    //}}AFX_MSG_MAP
     ON_UPDATE_COMMAND_UI(ID_EDIT_STATE,OnUpdateEditState)
END_M ESSAGE_MAP()
void CMainFrame::OnUpdateEditState(CCmdUI* pCmdUI)
{
    pCmdUI->SetCheck(m_bCheck);
    pCmdUI->Enable(TRUE);
}
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.