CToolBarCtrl&ToolBarCtrl = GetToolBarCtrl();中的“&”是什么意思?
BOOL CMyToolBar::CreateComboBox(int nIndex)
{
if(m_ComboBox.GetSafeHwnd())
return FALSE;
CToolBarCtrl&ToolBarCtrl = GetToolBarCtrl();//////////有问题
TBBUTTON button;
CRect rect;
button.fsStyle = TBSTYLE_SEP;
ToolBarCtrl.InsertButton(nIndex,&button);
ToolBarCtrl.InsertButton(nIndex,&button);
ToolBarCtrl.InsertButton(nIndex,&button);
//设置空位的宽度
SetButtonInfo(nIndex+1,IDC_MYCOMBO,TBBS_SEPARATOR,100);
SetButtonInfo(nIndex,ID_SEPARATOR,TBBS_SEPARATOR,12);
SetButtonInfo(nIndex+2,ID_SEPARATOR,TBBS_SEPARATOR,12);
GetItemRect(nIndex+1,&rect);
rect.top = 3;
rect.bottom = rect.top + 200;
if(!m_ComboBox.Create(CBS_DROPDOWNLIST|WS_VISIBLE|WS_TABSTOP|WS_VSCROLL,rect,this,IDC_MYCOMBO))
return FALSE;//////Continue
m_ComboBox.SetItemHeight(-1,15);
return TRUE;
}