Partager via


Control Bar Classes

Control bars are attached to a frame window. They contain buttons, status panes, or a dialog template. Free-floating control bars, also called tool palettes, are implemented by attaching them to a CMiniFrameWnd object.

Framework Control Bars

These control bars are an integral part of the MFC framework. They are easier to use and more powerful than the Windows control bars because they are integrated with the framework. Most MFC applications use these control bars rather than the Windows control bars.

  • CControlBar
    The base class for MFC control bars listed in this section. A control bar is a window aligned to the edge of a frame window. The control bar contains either HWND-based child controls or controls not based on an HWND, such as toolbar buttons.

  • CDialogBar
    A control bar that is based on a dialog box template.

  • CReBar
    Supports a toolbar that can contain additional child windows in the form of controls.

  • CToolBar
    Toolbar control windows that contain bitmap command buttons not based on an HWND. Most MFC applications use this class rather than CToolBarCtrl.

  • CStatusBar
    The base class for status-bar control windows. Most MFC applications use this class rather than CStatusBarCtrl.

Windows Control Bars

These control bars are thin wrappers for the corresponding Windows controls. Because they are not integrated with the framework, they are harder to use than the control bars previously listed. Most MFC applications use the control bars previously listed.

  • CRebarCtrl
    Implements the internal control of the CRebar object.

  • CStatusBarCtrl
    A horizontal window, usually divided into panes, in which an application can display status information.

  • CToolBarCtrl
    Provides the functionality of the Windows toolbar common control.

  • CToolTipCtrl
    A small pop-up window that displays a single line of text describing the purpose of a tool in an application.

  • CDockState
    Handles persistent storage of docking state data for control bars.

See Also

Concepts

Class Library Overview