我的主框架是动态生成的
m_pWnd = new CAddrWnd;
if (m_pWnd->LoadFrame(IDR_FRAME))
{
m_pWnd->ActivateFrame();
m_pWnd->UpdateWindow();
}
CAddrWnd 是从CFrameWnd派生的
在CAddrWnd 的OnCreate中
我
if (!m_StdToolBar.Create(this, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS) ||
!m_StdToolBar.LoadToolBar(IDR_FRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}结果有工具栏,但是tooltip出不来。
m_pWnd = new CAddrWnd;
if (m_pWnd->LoadFrame(IDR_FRAME))
{
m_pWnd->ActivateFrame();
m_pWnd->UpdateWindow();
}
CAddrWnd 是从CFrameWnd派生的
在CAddrWnd 的OnCreate中
我
if (!m_StdToolBar.Create(this, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS) ||
!m_StdToolBar.LoadToolBar(IDR_FRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}结果有工具栏,但是tooltip出不来。
别人调用这个动态库,生成一个frame
mintwlf(Programmer)能具体说说注意哪些处理吗?