static const UINT arrWebTbBtns[] =
{
ID_ANNOTATION_DEFINE_TEXT,
ID_SEPARATOR,
ID_ANNOTATION_DEFINE_TEXT,
};
if( !m_wndToolBarWeb.Create(_T("Text Annotation Toolbar"), this, ID_VIEW_TEXT_ANNOTATION_TOOLBAR )
|| !m_wndToolBarWeb.SetButtons( arrWebTbBtns, sizeof(arrWebTbBtns)/sizeof(arrWebTbBtns[0]) )
)
{
TRACE0("Failed to create m_wndToolBarWeb\n");
return(FALSE); // fail to create
}
if( !m_wndComboWebLoaction.Create(
WS_CHILD | WS_VISIBLE | CBS_DROPDOWN,
CRect(0,0, 300, 500),
&m_wndToolBarWeb,
ID_ANNOTATION_DEFINE_TEXT
)
)
{
TRACE0("Failed to create ID_WEB_URL\n");
return(FALSE); // fail to create
}
VERIFY(m_wndToolBarWeb.SetButtonCtrl(m_wndToolBarWeb.CommandToIndex(m_wndComboWebLoaction.GetDlgCtrlID()),&m_wndComboWebLoaction) );
m_wndComboWebLoaction.SetFont(CFont::FromHandle((HFONT)::GetStockObject(DEFAULT_GUI_FONT)) );
m_wndComboWebLoaction.SetItemHeight(-1, m_wndComboWebLoaction.GetItemHeight(-1) - 1 );
return(TRUE);