Print Page | Close Window

GetMenu() & ToolKit Pro

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=203
Printed Date: 22 December 2024 at 10:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetMenu() & ToolKit Pro
Posted By: OlivierMDVY
Subject: GetMenu() & ToolKit Pro
Date 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 ?

 




Replies:
Posted By: Oleg
Date Posted: 04 November 2003 at 1:21pm

According to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_how_to_update_user.2d.interface_objects.asp - 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);
}




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net