Print Page | Close Window

How Can Checked Dynamic Popup menu

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=3946
Printed Date: 10 November 2025 at 7:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How Can Checked Dynamic Popup menu
Posted By: leejia
Subject: How Can Checked Dynamic Popup menu
Date Posted: 06 April 2006 at 4:04am
in createcontrols message,i created any popup menu,I want set some popup menu's state is checked,How can do?



Replies:
Posted By: leejia
Date Posted: 06 April 2006 at 4:09am

everybody here?



Posted By: Oleg
Date Posted: 06 April 2006 at 7:43am

use Update handler for changing state.

or call pControl->SetChecked(TRUE); + pControl->SetFlags(xtpFlagManualUpdate);

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: leejia
Date Posted: 06 April 2006 at 12:04pm

Thanks for response my question!!!
But I want when user clicked the menu, and set it's checked status,What can i do?



Posted By: Oleg
Date Posted: 06 April 2006 at 7:40pm

See any sample from CommandBars folder.

 

example

 

 ON_UPDATE_COMMAND_UI(ID_VIEW_TEXTBELOWICONS, OnUpdateTextBelow) 


void CMainFrame::OnUpdateTextBelow(CCmdUI* pCmdUI)
{
 pCmdUI->SetCheck(TRUE);
}
 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: leejia
Date Posted: 06 April 2006 at 8:51pm
thanks!!!I do that success.



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