Contents Index Topic Contents | ||
Previous Topic: NMTBCUSTOMDRAW Next Topic: NMTBHOTITEM |
NMTBDISPINFO
typedef struct{ NMHDR hdr; DWORD dwMask; int idCommand; DWORD lParam; int iImage; LPTSTR pszText; int cchText; } NMTBDISPINFO, *LPNMTBDISPINFO;Contains and receives display information for a toolbar item. This structure is used with the TBN_GETDISPINFO notification.
- hdr
- NMHDR structure that contains additional information about the notification message.
- dwMask
- Set of flags that indicate which members of this structure are being requested. This can be one or more of the following values:
TBNF_IMAGE The item's image index is being requested. The image index must be placed in the iImage member. TBNF_TEXT Not currently implemented. The item's text is being requested. The text must be copied to the buffer pointed to by the pszText member. The receiving application can add the TBNF_DI_SETITEM flag to this member, in which case the control will store the display information and not request it again.
- idCommand
- The command identifier of the item for which display information is being requested. This member is filled in by the control before sending the notification.
- lParam
- The application-defined 32-bit value associated with the item for which display information is being requested. This member is filled in by the control before sending the notification.
- iImage
- Receives the image index for the item.
- pszText
- Address of a character buffer that receives the item's text.
- cchText
- Size of the buffer, in characters, at pszText.
Version 4.71
NMTBGETINFOTIP
typedef struct tagNMTBGETINFOTIP{ NMHDR hdr; LPTSTR pszText; int cchTextMax; int iItem; LPARAM lParam; } NMTBGETINFOTIP, *LPNMTBGETINFOTIP;Contains and receives infotip information for a toolbar item. This structure is used with the TBN_GETINFOTIP notification.
- hdr
- NMHDR structure that contains additional information about the notification message.
- pszText
- Address of a character buffer that receives the infotip text.
- cchTextMax
- Size of the buffer, in characters, at pszText. In most cases, the buffer will be INFOTIPSIZE characters in size, but you should always make sure that your application does not copy more than cchTextMax characters to the buffer at pszText.
- iItem
- The command identifier of the item for which infotip information is being requested. This member is filled in by the control before sending the notification.
- lParam
- The application-defined 32-bit value associated with the item for which infotip information is being requested. This member is filled in by the control before sending the notification.
Version 4.71
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.