How To Add Text to Toolbar Buttons (232017)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC)
This article was previously published under Q232017 SUMMARY
After adding button labels to a toolbar that is already created, it is necessary to resize the toolbar to accommodate the labels. This can be done using the CToolBar::SetSizes() function.
REFERENCES|
| CToolBar::SetSizes | \MFC\SRC\BARTOOL.CPP | Visual Studio 6.0 | | CToolBar::SetSizes | \atlmfc\src\mfc\BARTOOL.CPP | Visual Studio .NET | | CPPCFrameWnd::RecalcLayout() | \MFC\SRC\WINFRM.CPP | Visual Studio 6.0 | | CPPCFrameWnd::RecalcLayout() | \atlmfc\src\mfc\WINFRM.CPP | Visual Studio .NET |
For more information about Toolbar styles, visit the following Microsoft Developer Network (MSDN) Web site:
| Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
|---|
| Keywords: | kbCmnCtrls kbhowto kbToolbar KbUIDesign KB232017 kbAudDeveloper |
|---|
|