
Making a toolbar floatable and dockable in ATL
Hi,
I am making use of atlcontrols.h (provided with ATLCON sample) for creating
a toolbar in ATL. I am creating the toolbar like this:
.
.
.
m_objToolBarCtrl.Create(m_hWnd, NULL, NULL, WS_CHILD | TBSTYLE_TOOLTIPS |
CCS_ADJUSTABLE | TBSTYLE_WRAPABLE,
WS_EX_PALETTEWINDOW);
m_objToolBarCtrl.SetButtonStructSize(sizeof(TBBUTTON));
m_objToolBarCtrl.AddBitmap(10, IDR_MYTOOLBAR);
.
.
.
I want the toolbar to be dockable and floating. Please tell me how to do
that.
Thanks,
Ganesh.