wxToolBar::GetMaxSize

void GetMaxSize(float *w, float *h)

Gets the maximum size taken up by the tools after layout, including margins. This can be used to size a frame around the toolbar canvas.