Add/Remove buttons on CommandBars |
Post Reply |
Author | |
rag6419
Newbie Joined: 07 March 2006 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 07 March 2006 at 7:06pm |
I'm sure it's something very simple, but I have several toolbars and a
few of them have the buttons disabled when you go to remove them.
I create them in the same manner and have ON_COMMAND and
ON_UPDATE_COMMAND_UI for them.
|
|
Raj.krishnan
Groupie Joined: 16 January 2006 Status: Offline Points: 44 |
Post Options
Thanks(0)
|
Hi , you can set the visisble state of the buttons to false by finding the control and then do RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0, reposQuery , rcClientNow, NULL, FALSE);
Toolbar will automatically reset with visible buttons.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |