// ----------------------------------------------------------------------------
// the event handlers executed when the window must be repainted
// ----------------------------------------------------------------------------
// the event handlers executed when the window must be repainted
{
// This code assumes that wxSizeEvent.GetSize() returns
// the area of the entire window, not just the client
// area.
wxSize newSize = event.GetSize();
{
// This code assumes that wxSizeEvent.GetSize() returns
// the area of the entire window, not just the client
// area.
wxSize newSize = event.GetSize();
wxASSERT_MSG( pageSize <= range,
_T("page size can't be greater than range") );
wxASSERT_MSG( pageSize <= range,
_T("page size can't be greater than range") );
wxDefaultPosition, wxDefaultSize,
orient & wxVERTICAL ? wxSB_VERTICAL
: wxSB_HORIZONTAL);
#if wxUSE_TWO_WINDOWS
wxDefaultPosition, wxDefaultSize,
orient & wxVERTICAL ? wxSB_VERTICAL
: wxSB_HORIZONTAL);
#if wxUSE_TWO_WINDOWS