-wxSize wxToolbook::GetControllerSize() const
-{
- const wxSize sizeClient = GetClientSize(),
- sizeBorder = m_bookctrl->GetSize() - m_bookctrl->GetClientSize(),
- sizeToolBar = GetToolBar()->GetSize() + sizeBorder;
-
- wxSize size;
-
- if ( IsVertical() )
- {
- size.x = sizeClient.x;
- size.y = sizeToolBar.y;
- }
- else // left/right aligned
- {
- size.x = sizeToolBar.x;
- size.y = sizeClient.y;
- }
-
- return size;
-}
-