Export (0) Print
Expand All

CControlBar Class

class CControlBar : public CWnd


CControlBar is the base class for the control-bar classes CStatusBar, CToolBar, CDialogBar, CReBar, and COleResizeBar. A control bar is a window that is usually aligned to the left or right of a frame window. It may contain child items that are either HWND-based controls, which are Windows windows that generate and respond to Windows messages, or non-HWND-based items, which are not windows and are managed by application code or framework code. List boxes and edit controls are examples of HWND-based controls; status-bar panes and bitmap buttons are examples of non-HWND-based controls.

Control-bar windows are usually child windows of a parent frame window and are usually siblings to the client view or MDI client of the frame window. A CControlBar object uses information about the parent window's client rectangle to position itself. It then informs the parent window as to how much space remains unallocated in the parent window's client area.

For more information on CControlBar, see:

  • Control Bars
  • Technical Note 31: Control Bars.
  • Knowledge Base article Q242577 : PRB: Update Command UI Handlers Do Not Work for Menu Attached to a Dialog Box


Header: afxext.h

See Also


Class Members | Base Class | Hierarchy Chart | CToolBar | CDialogBar | CStatusBar | CReBar

© 2015 Microsoft