FIX: Toolbar Buttons Do Not Appear Correctly at Run-timeLast reviewed: February 10, 1998Article ID: Q180832 |
The information in this article applies to:
SYMPTOMSThe toolbar buttons on a Toolbar control do not appear at run-time. With Visual Basic 5.0, a Toolbar control with buttons on it appears as an empty, gray band. With Visual Basic 4.0, the Toolbar buttons appear but the Toolbar is not tall enough to display the captions.
CAUSEThe problem occurs due to a bug in comctl32.dll version 4.00.950 that ships with Windows 95.
RESOLUTIONUse an ImageList control to add an image to at least one button, and then all the buttons display correctly. Installing any newer version of comctl32.dll fixes the problem. An updated version of comctl32.dll can be downloaded from the Microsoft Software Library. See the REFERENCES section below for more information.
STATUSThis problem has been corrected in later versions of comctl32.dll.
MORE INFORMATIONIf you do not add any images to your Toolbar buttons, the buttons may not appear at run-time. But, if you add a ToolTip and/or code behind the button's Click Event, these will work properly when the mouse is placed over the button's location. Also, the gray band is taller when a Caption is used.
Steps to Reproduce Behavior
REFERENCESFor additional information, refer to the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q167121 TITLE : FILE: COMCTLZP.EXE: Comctl32.ocx Updated to Version 5.00.3828NOTE: Versions 3.51 and 4.0 of comctl32.dll in Windows NT 3.51 and 4.0, respectively, do not exhibit the problem in Visual Basic 5.0.
|
Additional query words: visible tool bar comctl32.ocx
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |