I use CToolBarCtrl::HideButton to hide or reveal a button on a toolbar. I cannot seem to make the toolbar resize itself to fit the buttons that are actually visible on the toolbar after the hide/reveal function. I have tried:
CToolBar::Invalidate
CToolBarCtrl::Invalidate
CToolBarCtrl::AutoSize
CToolBar::SetHeight
Example Befoe Hide:
Example After Hide:
Example After left-click on toolbar:
How can I get it to resize (like third example)???
Thanks for the suggestion, but in my original post I said that I had already tried these functions:
CToolBar::Invalidate
CToolBarCtrl::Invalidate CToolBarCtrl::AutoSize
CToolBar::SetHeight
In fact I got the idea to try CToolBarCtrl::AutoSize from another post you made on this forum... Unfortunately, it doesn't seem to work for me...
Now if I can just figure out how to mark the thread as "Resolved"...
VictorN Suggested I do this, but for some reason I don't have the fifth item in the Thread Tools menu...
This is what it looks like for me...
Any thoughts on how I can get at the "Mark Thread as Resolved" feature???
Cool ! Isn't it amazing sometimes the solutions can be so simple and sweet !
As for the resolved thing, it seems to have disappeared for me too. Recently the forum s/w got upgraded. Wondering if this disappearance has something to do with it.
Bookmarks