Code to Dynamically Redock a Toolbar at Runtime
Posted
by hdo hdo
on November 1st, 2000
void CMainFrame::OnChangeToolBar()
{
if(!m_wndToolBar.LoadToolBar(IDR_NEWTOOLBAR))
AfxMessageBox("Error: could not load toolbar");
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
}

Comments
There are no comments yet. Be the first to comment!