wxWindow::GetGrandParent

wxWindow * GetGrandParent(void)

Returns the grandparent of a window, if any.