LBUTTONINFO

typedef struct _LBUTTONINFO
{
   L_UINT uStructSize;
   L_UINT uID;
   L_UCHAR fsState;
   HBITMAP hBitmap; 
   L_TCHAR szToolTipText [ TOOLBAR_TOOLTIP_MAX_TEXT ]; 
   L_UINT32 dwTag;

} LBUTTONINFO, L_FAR *pLBUTTONINFO;

Contains information about a button in a toolbar.

Member

Description

uStructSize

Size of this structure.

uID

Command identifier associated with the button. This identifier will be used in the user specified callback to identify the button that initiate the call.

fsState

Button state flags. This member can be a combination of the values listed below:

 

Value

Meaning

 

TBSTATE_ENABLED

The button accepts user input. A button that doesn't have this state is grayed.

 

TBSTATE_HIDDEN

The button is not visible and cannot receive user input.

 

TBSTATE_PRESSED

The button is being clicked.

hBitmap

A DDB that will represent the Hot bitmap of the button. The toolbar will automatically create the cold and the disabled bitmaps.

szToolTipText

A null terminated array of characters that will become the button tool tip. The maximum length of this string is TOOLBAR_TOOLTIP_MAX_TEXT.

dwTag

User defined data that will retrieved with the toolbar information.

Comments

The information in this structure will represent the information of a single button in the toolbar.