Containers

Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

If you already worked with non-dynamic control bars (the CExtControlBar class), you know that the main purpose of the control bar is to be a dockable container window for all its child windows. It is also true for dynamic control bars. Because any control bar is designed to have only one child window, you should keep that in mind when design your control bars. Typically this only child window is a dialog that contains all the controls you need including a non-dockable toolbar. You develop such a dialog class (typically, it is derived from CExtResizableDialog to provide a consistent background) and then assign its instance to your control bar when the application is initialized (e.g., in CMainFrame::OnCreate()).