::wxFindWindowByLabel

wxWindow * wxFindWindowByLabel(wxWindow *parent, char *label)

Find a window by its label. Depending on the type of window, the label may be a window title or panel item label. If parent is NULL, the search will start from all top-level frames and dialog boces; if non-NULL, the search will be limited to the given window hierarchy. The search is recursive in both cases.