#include "wx/module.h"
#include "wx/private/stattext.h"
#include "wx/bookctrl.h"
+#include "wx/scrolwin.h"
#if wxUSE_DISPLAY
#include "wx/display.h"
{
if (dialog->GetSizer())
{
+#if wxUSE_BOOKCTRL
wxBookCtrlBase* bookContentWindow = wxDynamicCast(dialog->GetContentWindow(), wxBookCtrlBase);
if (bookContentWindow)
FitWithScrolling(dialog, windows);
}
else
+#endif // wxUSE_BOOKCTRL
{
// If we have an arbitrary dialog, create a scrolling area for the main content, and a button sizer
// for the main buttons.
#if wxUSE_DISPLAY
displaySize = wxDisplay(wxDisplay::GetFromWindow(dialog)).GetClientArea().GetSize();
#else
- displaySize = wxGetClientDisplayRect();
+ displaySize = wxGetClientDisplayRect().GetSize();
#endif
int flags = 0;