OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Finding a Specific Child

You might want to perform a function only on a specific child window.

For example, if you wanted to find the first check box that is checked in a parent window with several check boxes, you would use TWindow::FirstThat()

bool IsThisBoxChecked(TWindow* cb, void*)
{
return cb ?
(cb->GetCheck == BF_CHECKED) :
}
TCheckBox*
TMDIFileWindow::GetFirstChecked()
{
return FirstThat(IsThisBoxChecked);
}

See Also