在对话框里面使用ON_UPDATE_COMMAND_UI映射工具条
BOOL CRoiDialog::ContinueModal()
{
if(m_wndToolBar.IsWindowVisible())
{
CWnd* pWndParent = m_wndToolBar.GetParent();
m_wndToolBar.OnUpdateCmdUI((CFrameWnd*)this, TRUE);
}
return CDialog::ContinueModal();
}
BOOL CRoiDialog::ContinueModal()
{
if(m_wndToolBar.IsWindowVisible())
{
CWnd* pWndParent = m_wndToolBar.GetParent();
m_wndToolBar.OnUpdateCmdUI((CFrameWnd*)this, TRUE);
}
return CDialog::ContinueModal();
}