wxFrame::Centre

void Centre(int direction = wxBOTH)

Centres the frame on the display. The parameter may be wxHORIZONTAL, wxVERTICAL or wxBOTH.