|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Encapsulates the functionality of a rebar control, which is a container for a child window.
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.
The Smart Device version of CReBarCtrl Class does not support the following methods:
CReBarCtrl::MoveBand Windows CE does not support RB_MOVEBAND messages.
In Smartphone and Pocket PC platforms, the control bar always aligns to the bottom. The alignment is not configurable.