我在对话框上加了一个工具条,但是工具条的tooltip就是没有显示出来,不知道是为什么。
在OnInitDialog()中我是这样创建工具条的
if (!m_wndToolBar.CreateEx(this) ||
!m_wndToolBar.LoadToolBar(IDR_GRID_TOOLBAR))
{
TRACE0("Failed to create toolbar\n");
return;      // fail to create
}
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY |CBRS_SIZE_DYNAMIC);按说tooltip就应该出来了,但是.......这是为什么?