Listing 3
// disable all buttons
for ( wnd_iterator<button> begin = find_wnd_range<button>(), end;
begin != end; ++begin)
if ( begin->is_real_button() ) begin->enable(false);
// disable all buttons, check boxes, radio buttons, group boxes
for ( wnd_iterator<button> begin = find_wnd_range<button>(), end; begin != end; ++begin)
begin->enable(false);
// hide all children of window 'w'
wnd w = ...;
for ( wnd_iterator<> begin = find_wnd_range(w), end; begin != end; ++begin)
begin->show(SW_HIDE);
// simulate a click of all button siblings of 'w' (except for w itself)
wnd_iterator<button> begin = find_wnd_range<button>(w,siblings), end;
for ( ; begin != end; ++begin)
if ( begin->is_real_button() && *begin != w) // except for w
begin->click();