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
Docking to a specific location?
Posted by Legacy on 09/15/2003 12:00amOriginally posted by: Jon
Okay, I can dock my (3) toolbars to the top of my window, but they always appear on three seperatre lines - one above the other. There must be a way to force them all onto the same line... but what is it?
[edit]Just found the answer :) http://www.codeguru.com/toolbar/demo_toolbar_d.shtml[/edit]
Reply