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, *pLBUTTONINFO; 

Contains information about a button associated with a tool in a toolbar.

Members

L_UINT uStructSize

Size of this structure.

L_UINT uID

A TOOLBARBUTTONID enumeration value specifying the command identifier associated with the button. This identifier will be used in the user-specified callback to identify the button that initiated the call.

L_UCHAR fsState

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

Value Meaning
TBSTATE_ENABLED The button accepts user input
TBSTATE_HIDDEN The button is not visible and cannot receive user input.
TBSTATE_PRESSED The button is being clicked.

HBITMAP hBitmap

A DDB (device dependent bitmap) that will represent the Cold (enabled) bitmap of the button. The toolbar will automatically create the hot and the disabled bitmaps.

L_TCHAR szToolTipText [ TOOLBAR_TOOLTIP_MAX_TEXT ]

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

L_UINT32 dwTag

User-defined data associated with the button information.

Comments

A toolbar is made up of one or more tools. The LTOOLBARINFO structure contains information about the toolbar in general. Information about each tool that makes up the toolbar is contained in an LTOOLBARINFO structure. Each tool in a toolbar may have one or more buttons associated with it. A tool with more than one button associated with it is said to be a sub-toolbar. Information about the button(s) associated with a tool in the toolbar is contained in one or more LBUTTONINFO structures.

Buttons on a toolbar may have the same ID number. If a function is called that uses a shared button ID, such as LToolbar::AddButton, then the toolkit function will act on the first button found with the specified ID.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Toolbar C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.