Gabriel Ivăncescu
84ac7e1571
user32/listbox: Update the size in SetColumnWidth before calling UpdatePage.
...
Some applications don't forward WM_SIZE from DefWindowProc to the control,
but instead only send a LB_SETCOLUMNWIDTH message, even when the column
width doesn't change (but the listbox size does).
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=22440
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-09-07 13:23:51 +02:00
Nikolay Sivov
c9b6dd83a3
user32/listbox: Fix multicolumn navigation on VK_RIGHT.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-22 17:02:32 +02:00
Gabriel Ivăncescu
f025570c80
user32/listbox: Fix scrolling for multi-column listboxes.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=38565
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-08-21 23:02:30 +02: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
Dmitry Timoshkov
8b864ae9aa
user32: For an owner-drawn listbox without strings WM_MEASUREITEM still needs correct itemData.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:10:44 +02:00
Dmitry Timoshkov
5c765431e2
user32: Fix the listbox sorting algorithm.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:10:42 +02:00
Dmitry Timoshkov
18420c24c9
user32: Fix order of items passed in WM_COMPAREITEM data.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:10:40 +02:00
Piotr Caban
3c5c9b1577
user32: Fix itemData passed in ListBox WM_MEASUREITEM message.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 09:57:52 +01:00
Nikolay Sivov
1ae05c04a2
user32: Remove confusing comments.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-08 13:10:50 +01:00
Michael Stefaniuc
79147c8658
user32: Use SetRectEmpty() instead of memset().
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:11:46 +02:00
Michael Stefaniuc
e13011f63e
user32: Simplify a RECT copy.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:31 +09:00
Alex Henrie
5b53c0b88b
user32: Avoid double initialization.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:08 +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
Alex Henrie
f612553694
user32: Simplify if-else statement.
2015-07-17 16:33:50 +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
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
Ken Thomases
f42cfc04eb
user32: Improve mouse wheel scrolling in listbox control.
...
Allow fractions of WHEEL_DELTA to scroll fractions of SPI_GETWHEELSCROLLLINES,
although still only whole lines. Keep the remainder and apply it to next
event if in same direction.
2013-02-11 11:46:09 +01:00
Daniel Jelinski
39222f6ab7
user32: Always call ScrollWindowEx in the listbox WM_VSCROLL handler.
2012-12-13 20:15:35 +01:00
Michael Stefaniuc
4affaea0ba
user32: Avoid TRUE:FALSE conditional expressions.
2012-08-13 11:50:51 +02:00
Alexandre Julliard
0f90053575
user32: Add a common helper to set controls clip region, and make it behave correctly when mirrored.
2010-09-02 11:35:14 +02:00
Michael Stefaniuc
48e36e43dd
user32: Remove redundant not NULL check of variable item (coccicheck).
2010-05-18 18:42:07 +02:00
Alexandre Julliard
537877adae
user32: Move handling of listbox sizes for Win 3.1 apps to the 16-bit code.
2009-12-24 21:09:17 +01:00
Alexandre Julliard
8aa83d326a
user32: Make user.exe into a stand-alone 16-bit module.
2009-12-24 12:15:12 +01:00
Alexandre Julliard
d081a7352c
user32: Simplify window procedure allocation for the builtin classes.
2009-12-18 12:39:13 +01:00
Alexandre Julliard
c0f3f5a1d2
user32: Pre-allocate the window procedure for the listbox class.
2009-12-17 13:09:50 +01:00
Alexandre Julliard
9f12c730e1
user32: Turn the listbox winproc into a Wow handler.
2009-12-15 16:09:13 +01:00
Alexandre Julliard
8b226ac4d6
user32: Split the handling of the 16-bit messages out of the listbox winproc.
2009-12-13 12:13:06 +01:00
Dmitry Timoshkov
c293a535c0
user32: Invalidate a being removed listbox item before deleting it as it's been done before d2ecb11941
.
2009-05-19 11:58:53 +02:00
Dmitry Timoshkov
d2ecb11941
user32: Add the tests for LB_DELETESTRING, make them pass under Wine.
2009-04-29 13:07:52 +02:00
Michael Stefaniuc
214b40b109
user32: Remove superfluous pointer casts.
2009-03-02 12:11:38 +01:00
Francois Gouget
31df4d42b7
user32: Remove WINAPI/CALLBACK on static functions where not needed.
2008-11-25 11:50:00 +01:00
Juan Lang
1a5374065f
user32: Return error if memory allocation fails. Fixes Coverity id 115.
2008-09-11 11:44:15 +02:00
Alexandre Julliard
f39d39e35f
user32: Add an exception handler around LB_GETTEXT to hide a Delphi bug.
2008-05-02 11:41:49 +02:00
Dmitry Timoshkov
29565d558f
user32: Fix Win64 warnings.
2008-04-11 12:11:33 +02:00
Dmitry Timoshkov
113f2c9dbb
user32: Add a test for combobox navigation with arrow keys, make it pass under Wine.
2008-03-27 11:06:02 +01:00
Lei Zhang
6c1cdc7186
user32: Use wine_dbgstr_rect() in traces.
2008-02-07 11:59:53 +01:00
Andrew Talbot
7a8eb4c599
user32: Constify some variables.
2007-11-21 13:23:50 +01:00
Alex Villacís Lasso
873799df24
user32: Fix returned value of LB_DIR.
2007-11-14 13:04:44 +01:00
Alexandre Julliard
bfe88a00f8
user32: Store the builtin class names in Unicode.
2007-11-01 12:55:00 +01:00
Dmitry Timoshkov
566ce8f5ed
user32: Add more listbox message tests, make them pass under Wine.
2007-10-18 14:09:42 +02:00
Dmitry Timoshkov
5a218e97af
user32: Add a message test for ownerdrawn listbox, make it pass under Wine.
2007-10-02 13:31:46 +02:00
Steven Edwards
a725826ada
user32: Remove some no longer needed wine 16bit headers.
2007-08-29 12:31:34 +02:00
Peter Verthez
13b376df73
user32: LB_SETITEMDATA should return 1 on success, not 0.
2007-08-14 20:29:21 +02:00
Dmitry Timoshkov
3c9e7a7f33
wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility.
2007-05-25 20:37:56 +02:00
Andrew Talbot
48d740855e
user32: Replace inline static with static inline.
2007-03-17 20:04:08 +01:00
Paul Vriens
7100dd4b33
user32/listbox: Remove deadcode (Coverity).
2007-02-09 12:05:26 +01:00