Increasing the height of tool bar.
Kalyan -- chakri@sunserv.cmc.stph.net Sunday, October 20, 1996 Environment : Win95, VC++ 4.2 Hi all, I have some objects that are being processed by a thread and the status of the objects is to be displayed on the status bar in an iconic form, each type of icon representing a status. I have ten objects whose status is to be displayed, the problem is can I change the height of the tool bar to accomodate all the 10 icons? Thanx in advance, Kalyan.V
Mario Contestabile -- Mario_Contestabile.UOS__MTL@UOSMTL2.universal.com Tuesday, October 22, 1996 [Mini-digest: 2 responses] >can I change > the height of the tool bar to accomodate all the 10 icons? CToolBar::SetHeight() -----From: "Thomas Schall"Hi, I must admit that I don't know if my answer is what you are looking for. In general, to customize the size of any button in a toolbar, call CToolBar::SetSizes(...). SetSizes() does not accept zero sizes, but if you look at the MFC source code, you see that there is an if-clause. You can use the SDK-Messages to either set zero sizes for text or images. To customize the height of the toolbar area, just call CToolBar::SetHeight(...). Hope, this helps... Thomas ------------------------ Dipl.-Ing. Thomas Schall ICA-CSV EMail: schall@csv.ica.uni-stuttgart.de Universitaet Stuttgart Pfaffenwaldring 27 Tel. : +49 (0) 711 / 685 3756 70569 Stuttgart, Germany Fax : +49 (0) 711 / 685 3758
Roger Onslow/Newcastle/Computer Systems Australia/ Wednesday, October 23, 1996 > I have some objects that are being processed by a thread and the > status of the objects is to be displayed on the status bar in an > iconic form, each type of icon representing a status. I have ten > objects whose status is to be displayed, the problem is can I change > the height of the tool bar to accomodate all the 10 icons? MSDN has an article (in the series on OpenGl) that displays an icon in the toolbar for the current 3D shape. To make it fit, the font for the toolbar was changed to increase it's height. I don't know the title of the article off-hand, but if you have MSDN, just look for the series on OpenGL (EASYBLT samples etc). Hope this helps, if not, eMail me or the list and I'll find out where the article is (can't do so just at the moment, sorry). Roger
| Вернуться в корень Архива |