wxWidgets/tests
Vadim Zeitlin 9d7f0c5f7e Avoid spurious errors when getting wxChoice or wxListBox client data in wxMSW.
Even after the changes of r70415, we could still report an error when the
item client data was set to -1 (== CB_ERR) as checking for GetLastError() was
not enough, we need to also ensure that the last error is reset before trying
to get the client data.

Also apply the same fix to wxListBox and add the tests verifying that this
does work correctly.

Closes #13883.

Also fix wxListBox::GetClientData().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-10-14 15:07:44 +00:00
..
any Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
archive Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
arrays Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
base64 Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
benchmarks Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
cmdline Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
config Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
controls Avoid spurious errors when getting wxChoice or wxListBox client data in wxMSW. 2013-10-14 15:07:44 +00:00
datetime Consistently handle DST start time in wxDateTime::Set(). 2013-09-08 18:00:58 +00:00
events Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
exec Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
file Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
filekind Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
filename Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
filesys Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
font Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
fontmap Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
formatconverter Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
fswatcher Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
geometry Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
graphics Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
hashes Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
html Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
image Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
interactive Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
intl Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
lists Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
log Rewrite wxLogXXX() macros to avoid "ambiguous else" warnings. 2013-08-31 17:41:16 +00:00
longlong Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
mbconv Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
menu Fix wxMenu::GetTitle() before the menu is appended to the menu bar. 2013-08-30 23:32:37 +00:00
misc Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
net Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
regex Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
scopeguard Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
sizers Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
streams Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
strings Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
textfile Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
thread Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
toplevel Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
uris Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
validators Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
vectors Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
weakref Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
window Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
xlocale Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
xml Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
asserthelper.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
asserthelper.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
descrip.mms Fixes for OpenVMS on IA64 2011-09-29 13:47:38 +00:00
dummy.cpp
horse.ani
horse.bmp
horse.cur
horse.gif
horse.ico
horse.jpg
horse.pcx
horse.png
horse.pnm
horse.tga
horse.tif
horse.xpm
makefile.bcc Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
makefile.gcc Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
Makefile.in Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
makefile.vc Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
makefile.wat Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
runtests.bat Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
test_printfbench.dsp
test_test_gui.dsp Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test_test.dsp Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test_vc7_printfbench.vcproj
test_vc7_test_gui.vcproj Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test_vc7_test.vcproj Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test_vc8_printfbench.vcproj
test_vc8_test_gui.vcproj Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test_vc8_test.vcproj Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test_vc9_printfbench.vcproj
test_vc9_test_gui.vcproj Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test_vc9_test.vcproj Change version to 3.0.0. 2013-09-11 01:46:08 +00:00
test.bkl Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
test.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
testableframe.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
testableframe.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
testdata.fc
testdate.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
testfile.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
testimage.h Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
testprec.h Fix totally broken LocaleSetter class in the test suite. 2013-07-15 01:31:47 +00:00