Listing 1

wnd<rebar> rb = create_wnd<rebar>(top);
rb->add_band( rebar_band_info()
    .style(RBBS_BREAK | RBBS_CHILDEDGE | RBBS_GRIPPERALWAYS)
    .width(140) 
    .band_min_sizes(0,26)
    .text("MyEdit: ")
    .child( create_wnd<edit>(rb)) );
rb->add_band( rebar_band_info()
    .style(RBBS_CHILDEDGE | RBBS_GRIPPERALWAYS)
    .width(170)
    .text("MyCombo ")
    .child( create_wnd<combo_box>(rb)) );
rb->add_band(
    rebar_band_info()
    .style(RBBS_GRIPPERALWAYS)
    .width(200)
    .text("MyTool ")
    .child( create_wnd<toolbar>(top)) );