Resize button after SetCaption |
Post Reply |
Author | |
csturg
Newbie Joined: 13 July 2005 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 08 May 2007 at 7:57pm |
I have a toolbar on a dialog box. The buttons on the toolbar are configured to show both text and image. Initially the buttons are sized correctly, but if I change the text dynamically using SetCaption, the buttons are not resized to fit the new (and perhaps longer) text. Is there are way to refresh the button sizes after I call SetCaption?
Thanks
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
In OnSize handler add
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);
or manually call it when tooolbar size changed.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |