我想创建一个toolbar,上面有两个combox, 两个seperator,没有button
static UINT BASED_CODE format[] =
{
// same order as in the bitmap 'format.bmp'
ID_SEPARATOR, // font name static
ID_SEPARATOR, // font name combo box
ID_SEPARATOR,// font size static
ID_SEPARATOR, // font size combo box
ID_SEPARATOR, //ID_BUTTON_PIC
};
if (!m_wndFontFormatBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD|WS_VISIBLE|CBRS_TOP|
CBRS_TOOLTIPS|CBRS_FLYBY|CBRS_HIDE_INPLACE|CBRS_SIZE_DYNAMIC  ,CRect(4,10, 0, 0)) ||
!m_wndFontFormatBar.LoadBitmap(IDB_PIC_BITMAP) ||
!m_wndFontFormatBar.SetButtons(format,
sizeof(format)/sizeof(UINT)))
{
TRACE0("Failed to create FormatBar\n");
return FALSE;      // fail to create
}但是什么也看不见, 必须要加入一个button,才能够顺利创建不解, 请大家指点