git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33039
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool Create();
void AddChild(wxWindow *window);
DynamicSashRegion GetRegion(int x, int y);
bool Create();
void AddChild(wxWindow *window);
DynamicSashRegion GetRegion(int x, int y);
- void ResizeChild(wxSize size);
+ void ResizeChild(const wxSize& size);
wxScrollBar *FindScrollBar(const wxWindow *child, int vert) const;
void OnSize(wxSizeEvent &event);
wxScrollBar *FindScrollBar(const wxWindow *child, int vert) const;
void OnSize(wxSizeEvent &event);
-void wxDynamicSashWindowLeaf::ResizeChild(wxSize size)
+void wxDynamicSashWindowLeaf::ResizeChild(const wxSize& size)
- if (m_impl->m_window->GetWindowStyle() & wxDS_MANAGE_SCROLLBARS)
+ if (m_impl->m_window->HasFlag(wxDS_MANAGE_SCROLLBARS))
- m_child->SetSize(size);
wxSize best_size = m_child->GetBestSize();
if (best_size.GetWidth() < size.GetWidth())
wxSize best_size = m_child->GetBestSize();
if (best_size.GetWidth() < size.GetWidth())
best_size.SetWidth(size.GetWidth());
best_size.SetWidth(size.GetWidth());
if (best_size.GetHeight() < size.GetHeight())
if (best_size.GetHeight() < size.GetHeight())
best_size.SetHeight(size.GetHeight());
best_size.SetHeight(size.GetHeight());
m_child->SetSize(best_size);
int hpos = m_hscroll->GetThumbPosition();
m_child->SetSize(best_size);
int hpos = m_hscroll->GetThumbPosition();
wxPoint pos = m_child->GetPosition();
m_viewport->ScrollWindow(-hpos - pos.x, -vpos - pos.y);
}
wxPoint pos = m_child->GetPosition();
m_viewport->ScrollWindow(-hpos - pos.x, -vpos - pos.y);
}
+ else // !wxDS_MANAGE_SCROLLBARS
{
m_child->SetSize(size);
}
{
m_child->SetSize(size);
}