tool bars
-
Does anyone know how to implement docking toolbars in a dialog app? There are articles about toolbars in dlgs but the ones for docking all use EnableDocking called on CMainFrm which as far as I can see is not available.
-
Does anyone know how to implement docking toolbars in a dialog app? There are articles about toolbars in dlgs but the ones for docking all use EnableDocking called on CMainFrm which as far as I can see is not available.
Add a toolbar data member to your dialog class then in oninitdlg m_Tool.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC ); create your toolbar then right after that call RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0); and that should do it