]> git.saurik.com Git - wxWidgets.git/commit - src/msw/listbox.cpp
Added DoGetClientBestSize() and use it for a couple of controls in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Jun 2009 20:36:13 +0000 (20:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Jun 2009 20:36:13 +0000 (20:36 +0000)
commit743b426605478eeb31232c30e804e70ff493b1f2
treed24e43d20b7729fbabbdfdaed1a08376a7de1522
parent8c6c5778c204a24d0d6b24046eca41e141cc4f25
Added DoGetClientBestSize() and use it for a couple of controls in wxMSW.

DoGetClientBestSize() returns the best size of the client area, without
accounting for the border which is done by GetBestSize() itself and
DoGetBorderSize() called from it.

Use DoGetClientBestSize() in wxStaticText (where it was done
insideDoGetBestSize() before) and in wxListBox, to fix its height calculation.

Also use correct height of listbox items as returned by the control itself
instead of trying to guess it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/listbox.h
include/wx/msw/stattext.h
include/wx/msw/window.h
include/wx/window.h
src/common/wincmn.cpp
src/msw/listbox.cpp
src/msw/stattext.cpp
src/msw/window.cpp