Contents Index Topic Contents | ||
Previous Topic: TBBUTTON Next Topic: TBINSERTMARK |
TBBUTTONINFO
typedef struct { UINT cbSize; DWORD dwMask; int idCommand; int iImage; BYTE fsState; BYTE fsStyle; WORD cx; DWORD lParam; LPTSTR pszText; int cchText; } TBBUTTONINFOA, *LPTBBUTTONINFOA;Contains or receives information for a specific button in a toolbar.
- cbSize
- Size of the structure, in bytes. This member must be filled in prior to sending the associated message.
- dwMask
- Set of flags that indicate which members contain valid information. This member must be filled in prior to sending the associated message. This can be one or more of the following values:
TBIF_COMMAND The idCommand member contains valid information or is being requested. TBIF_IMAGE The iImage member contains valid information or is being requested. TBIF_LPARAM The lParam member contains valid information or is being requested. TBIF_SIZE The cx member contains valid information or is being requested. TBIF_STATE The fsState member contains valid information or is being requested. TBIF_STYLE The fsStyle member contains valid information or is being requested. TBIF_TEXT The pszText member contains valid information or is being requested. - idCommand
- Command identifier of the button.
- iImage
- Image index of the button. If this member is set to I_IMAGECALLBACK, the toolbar will send the TBN_GETDISPINFO notification to retrieve the image index when it is needed.
- fsState
- State flags of the button. This can be one or more of the toolbar button states.
- fsStyle
- Style flags of the button. This can be one or more of the toolbar button styles.
- cx
- Width of the button, in pixels.
- lParam
- Application-defined 32-bit value associated with the button.
- pszText
- Address of a character buffer that contains or receives the button text.
- cchText
- Size of the buffer at pszText. If the button information is being set, this member is ignored.
Version 4.71
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.