开发环境vc++ 2008
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
//创建工具条
DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_ALIGN_BOTTOM | CBRS_BORDER_TOP;
CRect rcBorder(0, 1, 0, 0);
if (!m_wndMapToolBar.CreateEx(this,TBSTYLE_FLAT, dwStyle, rcBorder) ||
!m_wndMapToolBar.LoadToolBar(IDR_TOOLBAR1))
{
TRACE0("创建基本工具条失败!\n");
return -1; // fail to create
}
m_wndMapToolBar.ShowWindow(SW_SHOW);
}
在mobile5 或6上没有问题,在6.5 上不报错也不显示,但切换一下窗口就可以显示了,这是哪里的原因,请高手指点。