MCPcopy Create free account
hub / github.com/audacity/audacity / SearchForWindow

Method SearchForWindow

libraries/lib-wx-init/ProgressDialog.cpp:1602–1613  ·  view source on GitHub ↗

Recursivaly search the window list for the given window.

Source from the content-addressed store, hash-verified

1600// Recursivaly search the window list for the given window.
1601//
1602bool ProgressDialog::SearchForWindow(const wxWindowList & list, const wxWindow *searchfor) const
1603{
1604 for (auto win : list)
1605 {
1606 if (win == searchfor || SearchForWindow(win->GetChildren(), searchfor))
1607 {
1608 return true;
1609 }
1610 }
1611
1612 return false;
1613}
1614
1615void ProgressDialog::OnCancel(wxCommandEvent & WXUNUSED(event))
1616{

Callers

nothing calls this directly

Calls 1

GetChildrenMethod · 0.80

Tested by

no test coverage detected