Re: ToolBar WON'T Re-size
Tried calling CToolBarCtrl::AutoSize after the HideButton ?
Re: ToolBar WON'T Re-size
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...
Re: ToolBar WON'T Re-size
Sorry. Didn't notice that.
This code should do it..
Code:
m_wndToolBar.GetToolBarCtrl().HideButton(ID_FILE_OPEN);
m_wndToolBar.GetToolBarCtrl().GetParentFrame()->RecalcLayout();
Re: ToolBar WON'T Re-size
THANKS kirants!!! That did it!:)
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...
http://forums.codeguru.com/
Any thoughts on how I can get at the "Mark Thread as Resolved" feature???
Re: ToolBar WON'T Re-size
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.