wxWidgets/include/wx/msw
Vadim Zeitlin 743b426605 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
2009-06-22 20:36:13 +00:00
..
ole add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
private fix PCH-less build after changing timer id type to WPARAM (closes #10901) 2009-06-16 05:05:20 +00:00
wince enable OpenGL library build by default under Windows too 2009-05-31 12:55:11 +00:00
accel.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
amd64.manifest
app.h second part of #10320: move wxApp event handling functions to wxEventLoopBase (in particular move Yield() functions); add backward compatible redirections to wxApp; update docs; remove global lists wxPendingEvents and wxPendingEventsLocker 2009-02-15 14:25:08 +00:00
apptbase.h remove wxMSW-specific (but copied into wxPalm too) wxAppTraits::AlwaysYield(), it's useless now that wxEventLoop is in wxBase 2009-05-24 19:39:40 +00:00
apptrait.h remove wxMSW-specific (but copied into wxPalm too) wxAppTraits::AlwaysYield(), it's useless now that wxEventLoop is in wxBase 2009-05-24 19:39:40 +00:00
bitmap.h first round of debug/release merge: introduce wxDEBUG_LEVEL, for now defined as 1 if __WXDEBUG__ is defined, i.e. no real changes; don't use __WXDEBUG__ in the headers to keep debug and release builds ABI-compatible; add functions to customize or disable asserts handling 2009-03-21 23:36:37 +00:00
blank.cur
bmpbuttn.h implement wxBitmapButton as just a wrapper for wxButton under MSW 2009-06-15 23:10:16 +00:00
bmpcbox.h correct Id tags 2009-01-19 13:30:34 +00:00
brush.h declare future-deprecated SetStyle(int) in wxPen/Brush and not wxPen/BrushBase as it's useless there (compilation of user code doing pen.SetStyle(wxDOT) still fails) 2008-06-17 17:28:26 +00:00
bullseye.cur
button.h implement wxBitmapButton as just a wrapper for wxButton under MSW 2009-06-15 23:10:16 +00:00
calctrl.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
caret.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
cdrom.ico
checkbox.h support multiline labels in wxCheckBox (#9495) 2008-06-07 01:54:44 +00:00
checklst.h remove duplicated HitTest implementation from wxCheckListBox, it already inherits wxListBox::HitTest() (which was however lacking an overload taking 2 coordinates, added now) 2009-01-25 18:10:24 +00:00
child.ico
chkconf.h test whether wxHAS_EVENT_BIND is supported in wx/features.h itself, not wx/chkconf.h as the former is included after the latter and so the check was done too early and wxHAS_EVENT_BIND was always defined 2009-05-03 07:44:44 +00:00
choice.h implement changing wxChoice and wxComboBox height 2009-05-01 21:49:43 +00:00
clipbrd.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
colordlg.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
colour.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
colours.bmp
combo.h compilation fix after NULL cast removal; also used it to get rid of an ugly OnTimerEvent(*(wxTimerEvent *)NULL) call 2009-01-19 14:40:13 +00:00
combobox.h added wxTextEntry::SetHint() (a.k.a. cue banner or placeholder string) 2009-03-02 12:25:01 +00:00
computer.ico
control.h set m_isBeingDeleted to true (only) in SendDestroyEvent(); call it as early as possible during the window destruction to ensure that destroy event handlers can still access the full window object 2009-01-20 18:33:33 +00:00
crashrpt.h take wxString in wxCrashReport::SetFileName() to allow passing either ASCII or wide strings as well as wxStrings to this method (closes 9505) 2008-05-29 13:28:05 +00:00
cross.cur
csquery.bmp
ctrlsub.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
cursor.h provide backward-compat wxCursor(int) ctor; remove empty stubs of XBM ctor from all ports except gtk,motif; make all ports emit wxLogError on invalid bitmap types; implement wxCursor(const wxString&, ...) ctor on GTK (not tested yet) 2008-09-25 17:56:07 +00:00
datectrl.h
dc.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dcclient.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dcmemory.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dcprint.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dcscreen.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
dde.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
debughlp.h
dialog.h remove wxMSW-specific FindSuitableParent() and use GetParentForModalDialog() everywhere; extend it with additional checks and remove redundant ones elsewhere 2009-05-09 12:26:15 +00:00
dib.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
dirdlg.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
dragimag.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
drive.ico
enhmeta.h add ability to create wxEnhMetaFileDC based on a reference DC 2009-05-31 19:11:15 +00:00
evtloop.h another missing WXDLLIMPEXP to fix DLL build 2009-02-26 14:15:20 +00:00
fdrepdlg.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
file1.ico
filedlg.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
floppy.ico
folder1.ico
folder2.ico
font.h added convenient wxFont::Make{Bold,Italic,Smaller,Larger} and Scale() methods 2009-06-12 20:11:21 +00:00
fontdlg.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
frame.h use wxSTB_ as prefix for wxStatusBar styles; add support for wxSTB_ELLIPSIZE_* flags under wxGTK; support wxSTB_SHOW_TIPS even if no ellipsization mode is active; update the sample to allow the user to choose the wxStatusBar style dynamically 2009-04-25 12:59:09 +00:00
gauge.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
gccpriv.h
gdiimage.h add GetSize also to wxGDIImage since wxBitmap under some ports derives from wxGDIImage and not from wxBitmapBase 2008-11-29 00:24:57 +00:00
genrcdefs.h
glcanvas.h recreate the window if FSAA is requested (changeset_r54022_Fix.patch from #9145) 2008-06-14 01:44:13 +00:00
hand.cur
headerctrl.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
helpbest.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
helpchm.h replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents 2008-11-02 02:39:52 +00:00
helpwin.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
htmlhelp.h
ia64.manifest
icon.h replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents 2008-11-02 02:39:52 +00:00
imaglist.h Make wxImageList not copiable (fixes #10503), replace wxList with wxObjectList 2009-02-19 20:26:00 +00:00
iniconf.h add wxUSE_CONFIG checks (see #10560) 2009-03-07 15:49:57 +00:00
joystick.h
libraries.h
listbox.h Added DoGetClientBestSize() and use it for a couple of controls in wxMSW. 2009-06-22 20:36:13 +00:00
listctrl.h optimize FindItem(data) performance (closes #9870) 2009-04-25 22:31:48 +00:00
magnif1.cur
mdi.h don't add client area origin when positioning the child MDI frame 2009-05-31 13:22:45 +00:00
mdi.ico
menu.h added CreateAccelTable() helper which creates the accel table for just this menu 2009-01-27 16:45:24 +00:00
menuitem.h don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither 2009-01-19 13:55:27 +00:00
metafile.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
microwin.h
mimetype.h Removed most of the pre-XDG MIME code from the Unix implementation, many speed-ups by simplification 2008-06-30 11:58:41 +00:00
minifram.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
missing.h define MIIM_BITMAP &c in wx/msw/missing.h instead of msw/menu.cpp as menuitem.cpp now needs them too 2009-01-31 20:52:44 +00:00
msgdlg.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
mslu.h
msvcrt.h replace more __WXDEBUG__ occurrences with wxDEBUG_LEVEL 2009-03-22 12:53:48 +00:00
notebook.h use a single wxBookCtrlEvent class for all wxBookCtrlBase-derived controls (#9667) 2008-08-01 13:46:46 +00:00
notifmsg.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
palette.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
pbrush.cur
pen.h declare future-deprecated SetStyle(int) in wxPen/Brush and not wxPen/BrushBase as it's useless there (compilation of user code doing pen.SetStyle(wxDOT) still fails) 2008-06-17 17:28:26 +00:00
pencil.cur
pntleft.cur
pntright.cur
popupwin.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
printdlg.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
printwin.h use enhanced metafiles for wxMSW print preview: this is as accurate as previous code, but much faster (fixes #9970) 2009-05-31 19:15:07 +00:00
private.h added missing parentheses in a couple of GetHxxxOf() macros 2009-06-15 03:35:30 +00:00
question.ico
radiobox.h use wxRA_SPECIFY_COLS/ROWS instead of old, deprecated and confusing wxRA_HORIZONTAL/VERTICAL 2009-06-03 22:33:32 +00:00
radiobut.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
rcdefs.h
regconf.h no changes, just remove an extra space (see #10560) 2009-03-07 15:49:32 +00:00
region.h a few more int/wxPolygonFillMode substitutions in wxRegion and wxGraphicsContext code 2009-01-08 16:43:56 +00:00
registry.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
removble.ico
rightarr.cur
roller.cur
scrolbar.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
seh.h disable warning about _set_se_translator() requiring /EHa for VC9 too (it was disabled for up to VC8) 2009-06-06 23:27:37 +00:00
setup0.h enable OpenGL library build by default under Windows too 2009-05-31 12:55:11 +00:00
setup_inc.h
slider.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
sound.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
spinbutt.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
spinctrl.h use wxALIGN_LEFT/CENTRE/RIGHT instead of wxTE_XXX to avoid problems with the latter not being defined in wx/spinctrl.h on non-MSW platforms (see #10621) 2009-03-22 10:55:55 +00:00
stackwalk.h don't use hardcoded constant 200; use wxSTACKWALKER_MAX_DEPTH instead 2009-01-14 14:38:00 +00:00
statbmp.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
statbox.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
statline.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
stattext.h Added DoGetClientBestSize() and use it for a couple of controls in wxMSW. 2009-06-22 20:36:13 +00:00
statusbar.h Add support for wxSTB_ELLIPSIZE_* and for wxSTB_SHOW_TIPS flags under wxMSW 2009-04-26 13:37:16 +00:00
std.ico
stdpaths.h allow customizing wxStandardPaths logic for the program directory determination 2009-06-11 16:46:19 +00:00
subwin.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
taskbar.h
textctrl.h substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE 2008-03-26 15:06:00 +00:00
textentry.h added wxTextEntry::DoGetValue() to allow returning empty string if the control currently contains hint text 2009-03-02 13:31:29 +00:00
tglbtn.h Implemented wxBitmapToggleButton generically for now 2008-12-19 16:04:31 +00:00
tls.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
toolbar.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
tooltip.h Compilo 2009-04-28 09:39:52 +00:00
toplevel.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
treectrl.h implement wxTreeCtrl::GetFocusedItem() for wxMSW too (see #10859) 2009-06-19 23:48:50 +00:00
uxtheme.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
uxthemep.h
window.h Added DoGetClientBestSize() and use it for a couple of controls in wxMSW. 2009-06-22 20:36:13 +00:00
winundef.h
wrapcctl.h extract (and expand and clean up and document) the header window implementation used inside the generic wxDataViewCtrl in a separate wxHeaderCtrl class which could be reused in (generic) wxListCtrl and, most importantly, wxGrid later 2008-12-03 21:53:10 +00:00
wrapcdlg.h
wrapgdip.h
wrapshl.h add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros 2009-02-08 11:45:59 +00:00
wrapwin.h Compilation fixes for mingw-w64. 2008-05-31 12:44:40 +00:00
wx.manifest
wx.rc