INFO: Toolbar Button Behavior with Checked Buttons (231893)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
    • Microsoft Windows 98
    • Microsoft Windows 95
    • Microsoft Windows NT Server 4.0
    • Microsoft Windows NT Workstation 4.0
    • the operating system: Microsoft Windows 2000

This article was previously published under Q231893

SUMMARY

When adding TBSTYLE_CHECK buttons to a toolbar that uses one or more image lists to supply bitmaps, the actual image displayed may be different than what is expected. Selected style buttons do not follow the identical convention for determining the image list that will be used to paint the button, depending on the state the button is in currently, and which image lists are available.

MORE INFORMATION

The following table indicates which image list is used with a selected button when two or more types of image lists are being used:
Toolbar StyleButton StateDefault Image ListDisabled Image ListHotimage Image ListResulting Image
DefaultNoneXX Disabled Imagelist
DefaultTBSTATE_ENABLEDXX Default Imagelist
DefaultTBSTATE_CHECKEDXX Default Imagelist
DefaultTBSTATE_PRESSEDXX Disabled Imagelist
DefaultTBSTATE_ENABLED|TBSTATE_PRESSEDXX Default Imagelist
DefaultTBSTATE_ENABLED|TBSTATE_CHECKEDXX Default Imagelist
DefaultNoneXXXDisabled Imagelist
DefaultTBSTATE_ENABLEDXXXDefault Imagelist
DefaultTBSTATE_CHECKEDXXXHotimage Imagelist
DefaultTBSTATE_PRESSEDXXXDisabled Imagelist
DefaultTBSTATE_ENABLED|TBSTATE_PRESSEDXXXDefault Imagelist
DefaultTBSTATE_ENABLED|TBSTATE_CHECKEDXXXHotimage Imagelist
TBSTYLE_FLATNoneXX Disabled Imagelist
TBSTYLE_FLATTBSTATE_ENABLEDXX Default Imagelist
TBSTYLE_FLATTBSTATE_CHECKEDXX Default Imagelist
TBSTYLE_FLATTBSTATE_PRESSEDXX Disabled Imagelist
TBSTYLE_FLATTBSTATE_ENABLED|TBSTATE_PRESSEDXX Default Imagelist
TBSTYLE_FLATTBSTATE_ENABLED|TBSTATE_CHECKEDXX Default Imagelist
TBSTYLE_FLATNoneXXXDisabled Imagelist
TBSTYLE_FLATTBSTATE_ENABLEDXXXDefault Imagelist
TBSTYLE_FLATTBSTATE_CHECKEDXXXHotimage Imagelist
TBSTYLE_FLATTBSTATE_PRESSEDXXXDisabled Imagelist
TBSTYLE_FLATTBSTATE_ENABLED|TBSTATE_PRESSEDXXXDefault Imagelist
TBSTYLE_FLATTBSTATE_ENABLED|TBSTATE_CHECKEDXXXHotimage Imagelist

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbinfo kbToolbar KB231893