TBADDBITMAP structure
Applies to: desktop apps only
Adds a bitmap that contains button images to a toolbar.
Syntax
typedef struct {
HINSTANCE hInst;
UINT_PTR nID;
} TBADDBITMAP, *LPTBADDBITMAP;
Members
- hInst
-
Type: HINSTANCE
-
Handle to the module instance with the executable file that contains a bitmap resource. To use bitmap handles instead of resource IDs, set this member to NULL.
You can add the system-defined button bitmaps to the list by specifying HINST_COMMCTRL as the hInst member and one of the following values as the nID member.
- nID
-
Type: UINT_PTR
-
If hInst is NULL, set this member to the bitmap handle of the bitmap with the button images. Otherwise, set it to the resource identifier of the bitmap with the button images.
Remarks
If nID holds a bitmap handle, rather than a resource ID, do not destroy the bitmap until it has been replaced with TB_REPLACEBITMAP. Otherwise, the toolbar is destroyed.
Defined values can be used as indexes to the standard bitmaps. For more information, see Toolbar Standard Button Image Index Values.
The TBADDBITMAP structure is used with the TB_ADDBITMAP message.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
Send comments about this topic to Microsoft
Build date: 3/6/2012