This method sets each toolbar button's command identifier to the value specified by the corresponding element of the array lpIDArray. If an element of the array has the ID_SEPARATOR value, a separator is created in the corresponding position of the toolbar. This method also sets each button's style to TBBS_BUTTON and each separator's style to TBBS_SEPARATOR, and assigns an image index to each button. The image index specifies the position of the button’s image within the bitmap.
Header file: | Afxext.h |
Platforms: | Palm-size PC, H/PC Pro |
Windows CE versions: | 2.10 and later |
Complete documentation: | Visual C++ documentation |
BOOL SetButtons( const UINT* lpIDArray, int nIDCount );