wxWindow::GetSize

void GetSize(int *width, int *height)

This gets the size of the entire window in pixels.