CReBarCtrl Class
Encapsulates the functionality of a rebar control, which is a container for a child window.
class CReBarCtrl : public CWnd
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CReBarCtrl object. |
Public Methods
Name |
Description |
---|---|
Places the rebar control into drag-and-drop mode. |
|
Creates the rebar control and attaches it to the CReBarCtrl object. |
|
Creates a rebar control with the specified Windows extended styles and attaches it to a CReBarCtrl object. |
|
Deletes a band from a rebar control. |
|
Updates the drag position in the rebar control after a call to BeginDrag. |
|
Terminates the rebar control's drag-and-drop operation. |
|
Retrieves the borders of a band. |
|
Retrieves the count of bands currently in the rebar control. |
|
Retrieves information about a specified band in a rebar control. |
|
Retrieves the margins of a band. |
|
Retrieves the height of the rebar control. |
|
Retrieves information about the rebar control and the image list it uses. |
|
Retrieves a rebar control's default background color. |
|
Retrieves the COLORSCHEME structure associated with the rebar control. |
|
Retrieves a rebar control's IDropTarget interface pointer. |
|
Gets the extended style of the current rebar control. |
|
Retrieves the image list associated with a rebar control. |
|
Retrieves the rebar control's current palette. |
|
Retrieves the bounding rectangle for a given band in a rebar control. |
|
Retrieves the number of band rows in a rebar control. |
|
Retrieves the height of a specified row in a rebar control. |
|
Retrieves a rebar control's default text color. |
|
Retrieves the handle to any tool tip control associated with the rebar control. |
|
Determines which portion of a rebar band is at a given point on the screen, if a rebar band exists at that point. |
|
Converts a band identifier (ID) to a band index in a rebar control. |
|
Inserts a new band in a rebar control. |
|
Resizes a band in a rebar control to its largest size. |
|
Resizes a band in a rebar control to its smallest size. |
|
Moves a band from one index to another. |
|
Programmatically pushes a chevron. |
|
Resizes a band in a rebar control to its ideal size. |
|
Sets characteristics of an existing band in a rebar control. |
|
Sets the width of the specified docked band in the current rebar control. |
|
Sets the characteristics of a rebar control. |
|
Sets a rebar control's default background color. |
|
Sets the color scheme for the buttons on a rebar control. |
|
Sets the extended styles for the current rebar control. |
|
Sets a rebar control's image list. |
|
Sets a rebar control's owner window. |
|
Sets the rebar control's current palette. |
|
Sets a rebar control's default text color. |
|
Associates a tool tip control with the rebar control. |
|
Sets the visual style of the rebar control. |
|
Shows or hides a given band in a rebar control. |
|
Fits a rebar control to a specified rectangle. |
Remarks
The application in which the rebar control resides assigns the child window contained by the rebar control to the rebar band. The child window is usually another common control.
Rebar controls contain one or more bands. Each band can contain a combination of a gripper bar, a bitmap, a text label, and a child window. The band can contain only one of each of these items.
The rebar control can display the child window over a specified background bitmap. All rebar control bands can be resized, except those that use the RBBS_FIXEDSIZE style. As you reposition or resize a rebar control band, the rebar control manages the size and position of the child window assigned to that band. To resize or change the order of bands within the control, click and drag a band's gripper bar.
The following illustration shows a rebar control that has three bands:
Band 0 contains a flat, transparent toolbar control.
Band 1 contains both transparent standard and transparent dropdown buttons.
Band 2 contains a combo box and four standard buttons.
Rebar control
Rebar controls support:
Image lists.
Message-handling.
Custom draw functionality.
A variety of control styles in addition to standard window styles. For a list of these styles, see Rebar Control Styles in the Windows SDK.
For more information, see Using CReBarCtrl.
Inheritance Hierarchy
CReBarCtrl
Requirements
Header: afxcmn.h