OS/2 scrolling support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-02-04 04:19:14 +00:00
parent cafbad8f17
commit 45e0dc9477
10 changed files with 344 additions and 249 deletions

View File

@@ -162,9 +162,13 @@ void wxTopLevelWindowBase::OnSize(wxSizeEvent& WXUNUSED(event))
static const int ofs = 0;
#endif
child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs);
#ifdef __WXPM__
UpdateInternalSize(child, clientH);
// OS/2 PM has to do a LOT of stuff to get things
// positioned right, especially if the child is a
// scrolled window.
UpdateInternalSize(child, clientW, clientH);
#else
child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs);
#endif
}
}