wxWindow::SetClientSize

void SetClientSize(int x, int y, int width, int height)

This sets the size of the window client area in pixels. Using this function to size a window tends to be more device-independent than SetSize, since the application need not worry about what dimensions the border or title bar have when trying to fit the window around panel items, for example.