我隐约觉得你们说得很详细了,但是我不清楚整个逻辑,所以还是无法理解 SetButtons下 lpIDArray Pointer to an array of command Ids. It can be NULL to allocate empty buttons. If lpIDArray is NULL, this function allocates space for the number of items specified by nIDCount. Use SetButtonInfo to set each item's attributes. 看到这段我设置成0的。 目前卡在如何设置上 随便给的话,我是在SetButtons的时候给的吗? UINT nid[]={0xff01,0xff02,0xff03,0xff04,0xff05}; 可以把上面这个放进去吗?
我打算用[m_ToolBar.SetButtons(NULL,5);]来建5个按钮,然后分别设置5个按钮的图案和文字等等。所以不明白按钮ID从何获取,如何设置。谢谢
所以你可以自定义一个范围,然后把你自己的控件的id从那个范围开始
SetButtons下
lpIDArray
Pointer to an array of command Ids. It can be NULL to allocate empty buttons.
If lpIDArray is NULL, this function allocates space for the number of items specified by nIDCount. Use SetButtonInfo to set each item's attributes.
看到这段我设置成0的。
目前卡在如何设置上
随便给的话,我是在SetButtons的时候给的吗?
UINT nid[]={0xff01,0xff02,0xff03,0xff04,0xff05};
可以把上面这个放进去吗?