Print Page | Close Window

How to hide disabled icon from toolbar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6471
Printed Date: 28 April 2024 at 10:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to hide disabled icon from toolbar?
Posted By: aaabc
Subject: How to hide disabled icon from toolbar?
Date Posted: 21 February 2007 at 1:18am
Is there any way to not only disable, but also hide icon(s) from toolbar?
Thanks.



Replies:
Posted By: tommylov
Date Posted: 21 February 2007 at 2:34pm
Try this:
 
int index = 0; // index of icon you want to hide
 
CXTPControl * pctrl = (CXTPControl *)pToolBar->GetControl(index);
pctrl->SetVisible(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