wxItem::Centre

void Centre(int direction = wxHORIZONTAL)

Centres the frame on the panel or dialog box. The parameter may be wxHORIZONTAL, wxVERTICAL or wxBOTH.

You may still use Fit in conjunction with this call, but call Fit first before centring items.