This member function sets each toolbar button's command ID to the value specified by the corresponding element of the array lpIDArray. If an element of the array has the value ID_SEPARATOR, a separator is created in the corresponding position of the toolbar. This function 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.
You do not need to account for separators in the bitmap because this function does not assign image indexes for separators. If your toolbar has buttons at positions 0, 1, and 3 and a separator at position 2, the images at positions 0, 1, and 2 in your bitmap are assigned to the buttons at positions 0, 1, and 3, respectively.
If lpIDArray is NULL, this function allocates space for the number of items specified by nIDCount. Use SetButtonInfo to set each item’s attributes.
摘点文字,便于理解,我想问一下文中的separators是什么意思?
------解决方案--------------------
separator就是用来separate的东西,如果上下文是将字符串,那他就是分隔符。 这里指的是工具栏(toolBar)里用来分隔不同区域的东西:应该是个分隔图像。因为后面提到了Style.