Print Page | Close Window

Problem (possibly bug) with disabled button

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=11126
Printed Date: 17 May 2024 at 8:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem (possibly bug) with disabled button
Posted By: rokky05
Subject: Problem (possibly bug) with disabled button
Date Posted: 20 June 2008 at 8:49am
Hi, I disabled button in my CommandBar like this:

BOOL SomeAPP::OnInitDialog()

{
     ....
     pToolBarCombo->GetControl(1)->SetEnabled(FALSE);
     ....
}
Button is disabled but when i push other button on this bar my Disabled Button becomes Enabled, Why???



Replies:
Posted By: Oleg
Date Posted: 20 June 2008 at 1:40pm
Add
 
pToolBarCombo->GetControl(1)->SetFlags(xtpFlagManualUpdate); to ignote Update handlers.


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



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