Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - GetMenu() & ToolKit Pro
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetMenu() & ToolKit Pro

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


Joined: 31 October 2003
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote OlivierMDVY Quote  Post ReplyReply Direct Link To This Post Topic: GetMenu() & ToolKit Pro
    Posted: 31 October 2003 at 7:28am

Hello,

 

the GetMenu() always return NULL with the Toolkit Pro, i would like to do a CheckMenuItem(...), how can i do that now ?

 

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: 04 November 2003 at 1:21pm

According to http://msdn.microsoft.com/library/default.asp?url=/library/e n-us/vccore/html/_core_how_to_update_user.2d.interface_objec ts.asp

you must add ON_UPDATE_COMMAND_UI handler:

ON_UPDATE_COMMAND_UI(ID_YOURCOMMAND, OnUpdateYourCommand)

void CMainFrame::OnUpdateYourCommand(CCmdUI* pCmdUI)
{
 pCmdUI->SetCheck(FALSE);
}

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.109 seconds.