Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to hide disabled icon from toolbar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to hide disabled icon from toolbar?

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


Joined: 29 January 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote aaabc Quote  Post ReplyReply Direct Link To This Post Topic: How to hide disabled icon from toolbar?
    Posted: 21 February 2007 at 1:18am
Is there any way to not only disable, but also hide icon(s) from toolbar?
Thanks.
Back to Top
tommylov View Drop Down
Groupie
Groupie


Joined: 09 January 2007
Location: United States
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote tommylov Quote  Post ReplyReply Direct Link To This Post 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);
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.