Nikolay Sivov
832b748b06
user32/listbox: Update caret index on LB_SETSEL.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47459
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-11 21:51:28 +01:00
Francois Gouget
e248170e30
user32/tests: Avoid an unneeded (&commented out) strlen() call.
...
Note that pathBuffer is an array and thus cannot be NULL.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:46 +01:00
Vijay Kiran Kamuju
7a6b00dc25
user32: Add DlgDirList wildcard checks.
...
Based on a patch from Christian Lupien.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=8226
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-27 22:21:17 +01:00
Gabriel Ivăncescu
20c0dda050
user32/tests: Test negative counts in LB_SETCOUNT.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-21 16:04:07 +01:00
Gabriel Ivăncescu
3179e48f69
user32/tests: Test changing the selection styles after listbox creation.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-15 15:08:10 +01:00
Gabriel Ivăncescu
0d19628ef5
user32/tests: Add tests for LB_INITSTORAGE.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Gabriel Ivăncescu
40e16ac150
user32/tests: Also include LBS_NODATA cases when testing ownerdraw.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-28 12:12:32 +01:00
Gabriel Ivăncescu
dfb57a1655
user32/listbox: Make LBS_NODATA listboxes error on any attempt to find a value.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
d30aadd3e1
user32/listbox: Don't set any data for LBS_NODATA listboxes.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
cab591c59b
user32/listbox: Return 0 from LB_GETITEMDATA for LBS_NODATA listboxes.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
c980edc227
user32/listbox: Always retrieve zeros in LB_GETTEXT for LBS_NODATA listboxes.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
c920b4dc5a
user32/listbox: Use ULONG_PTR instead of DWORD when retrieving text without HAS_STRINGS.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
0a5c360f39
user32/listbox: Make SetCount fail if LBS_NODATA is not set.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
9b59eb477b
user32/listbox: Clear LBS_OWNERDRAWVARIABLE if LBS_OWNERDRAWFIXED is set.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
24b539dea8
user32/tests: Test incompatible styles for LBS_NODATA.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
2fc9d0afd9
user32/tests: Add some tests for LBS_NODATA.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Gabriel Ivăncescu
686fb70016
user32/tests: Add more Listbox tests for ownerdraw styles.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-16 14:58:41 +01:00
Nikolay Sivov
54cd4464c6
user32/tests: Fix Listbox test failures on some configurations.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-07 17:08:59 +01:00
Nikolay Sivov
201dc289d0
user32/listbox: Update anchor index on LB_SETSEL.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 20:55:10 +02:00
Nikolay Sivov
5fced2810f
user32/tests: Add some ListBox tests for anchor index.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 20:55:10 +02:00
Michael Stefaniuc
1694ab087a
user32/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 18:27:20 +02:00
Piotr Caban
43df3f468f
user32/tests: Add listbox WM_MEASUREITEM tests.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 09:58:00 +01:00
Michael Stefaniuc
7f5adb69cd
user32/tests: Use wine_dbgstr_rect() to print RECTs.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:21 +09:00
Frédéric Delanoy
fa56de2cd6
user32/tests: Use todo_wine_if() in tests.
...
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:11 +09:00
Joachim Priesner
175e714656
user32: Hide horizontal Listbox scroll bar if no horizontal extent is set.
...
Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
2015-10-07 21:28:55 +09:00
Alex Henrie
5caa651732
user32: Scroll listbox item completely into view on LB_SETCURSEL.
2015-07-17 16:34:03 +09:00
Andrew Eikum
cb1242a8f2
user32: Only update listbox horizontal scroll info if WS_HSCROLL is set.
2014-04-28 18:25:02 +02:00
Andrew Eikum
c4a28490f3
user32: Allow setting horizontal extent even without WS_HSCROLL.
2014-04-24 11:37:13 +02:00
Huw Davies
fb298aed04
user32: If the listbox loses focus while holding capture, release it by essentially simulating a button up event.
2014-02-20 13:58:32 +01:00
Dmitry Timoshkov
c8f608e755
user32/tests: Fix listbox tests compilation with __WINESRC__ defined.
2013-10-23 17:01:47 +02:00
Nikolay Sivov
8f7779fc3b
user32: Implement GetListBoxInfo().
2013-05-07 20:07:41 +02:00
Huw Davies
698c7f0f3f
user32: Invalidate the listbox in LB_SETCOUNT.
2013-03-28 18:53:57 +01:00
Alexandre Julliard
d8c90fa40b
user32/tests: Move DlgDirList tests to avoid changing the current directory for other tests.
2012-07-17 16:22:34 +02:00
Bruno Jesus
81cbf29ef3
user32/tests: Update DlgDirList tests.
...
Based on original patch from Christian Lupien.
2012-07-16 18:19:26 +02:00
Marcus Meissner
b0b77d4ba9
user32: Fixed some more side effect functions in assert() (Coverity).
2011-02-25 14:47:50 +01:00
Austin English
fc2d1ded12
user32/tests: Remove some dead assignments (LLVM/Clang).
2011-02-10 09:58:50 -06:00
Alexandre Julliard
dfab8824c5
user32/tests: Make some variables static.
2010-10-01 13:37:44 +02:00
Michael Stefaniuc
7e2b624896
user32/tests: Remove some explicit LPARAM/WPARAM casts.
2009-12-28 12:27:13 +01:00
Paul Vriens
42f7e4a4d9
user32/tests: Fix an intermittent test failure.
2009-10-12 12:36:29 +02:00
Alexandre Julliard
5c54e24f90
user32/tests: Better handling of the *.* wildcard in the listbox test.
2009-02-13 13:01:12 +01:00
Michael Stefaniuc
e89386a59e
user32/tests: Remove superfluous pointer casts.
...
The (MENUITEMINFO)->dwTypeData is really a string ... the joys of the
Hungarian notation.
2009-02-05 13:15:32 +01:00
Michael Stefaniuc
e202baabd5
user32/tests: Do not cast the (IDC|IDI|RT)_* defines to LPSTR.
2009-01-13 15:26:11 +01:00
Alexandre Julliard
d97b398767
user32/tests: Fix pointer casting warnings on 64-bit.
2009-01-03 20:16:16 +01:00
Alexandre Julliard
bda507fb58
user32/tests: Fix wildcard directory lists handling for Win9x.
2008-11-20 19:52:03 +01:00
Michael Stefaniuc
3d6e19d48a
user32: Do not cast zero.
2008-11-04 11:26:24 +01:00
Alexandre Julliard
e0e91cf7f4
user32/tests: Fix the listbox tests on Win9x and NT4.
2008-09-24 15:39:03 +02:00
Alexandre Julliard
4fce63eb74
user32/tests: Fix the listbox LB_DIR tests when directories are present.
2008-08-04 23:04:53 +02:00
James Hawkins
458c729251
user32: Fix a test that fails in almost all reports.
2008-05-22 11:42:47 +02:00
Lei Zhang
4bc0cd60cf
user32: Use a bogus wildcard in listbox test, change wildcard string to a const.
2008-04-04 11:05:25 +02:00
Paul Vriens
58665f08d1
users32/tests: Win9x doesn't like FILE_ALL_ACCESS.
2008-03-10 11:22:34 +01:00