wxWindow::GetParent

wxWindow * GetParent(void)

Returns the parent of a window, if any.