wxWindow::GetClientSize

void GetClientSize(int *width, int *height)

This gets the size of the window 'client area' in pixels. The client area is the area which may be drawn on by the programmer, excluding title bar, border etc.