Dmitry Timoshkov
52ece0efef
Use GetSysColorBrush(COLOR_WINDOW) when there is no brush for drawing
...
background in listbox.
2001-02-26 22:31:55 +00:00
Alexandre Julliard
a41b2cfdd0
Moved tweak support to USER dll. Removed tweak.h and cache.h.
2001-01-15 20:12:55 +00:00
Gerard Patel
db8fb6f387
Fixed returned length for LB_GETTEXT.
2001-01-10 23:54:46 +00:00
Dmitry Timoshkov
7462099847
Added unicode window proc for the listbox control.
...
Replaced all ansi calls by their unicode equivalents.
Removed use of the custom local heap.
2001-01-09 21:51:04 +00:00
Andreas Mohr
85ba8798b5
Took a stab at implementing LBS_NOSEL.
2001-01-06 00:34:14 +00:00
Aric Stewart
fe9a0f0977
Fixed a problem where when deleting an item using index -1 on an empty
...
listbox we would pass through an illegal negative index and cause
problems.
2001-01-04 19:27:03 +00:00
Ulrich Czekalla
7c55bc0cd6
Only capture mouse when an item is selected.
2000-12-15 22:58:25 +00:00
Louis Philippe Gagnon
956c847f49
Invalidate the focus rect when a listbox is resized.
2000-12-13 21:26:45 +00:00
Alexandre Julliard
982a223f36
Replaced PTR_SEG_TO_LIN macro by exported MapSL function.
...
Fixed a few ptr/segptr mismatches.
Moved CONV_RECT/POINT macros to wingdi16.h.
2000-12-13 20:20:09 +00:00
Alexandre Julliard
bf67259a41
Use the DRIVE_* API constants instead of the DRIVETYPE enum.
...
Changed DRIVE_CANNOTDETERMINE and DRIVE_DOESNOTEXIST to use the
correct names.
Cleaned up a few dependencies on internal drive.c functions.
2000-12-12 00:44:42 +00:00
Alexandre Julliard
91222da881
Moved most builtin controls structures into their respective C file.
...
Created new controls.h file private to user32.dll and moved remaining
builtin controls definitions there.
2000-12-10 23:01:33 +00:00
Louis Philippe Gagnon
537bcadf55
Don't update scrollbars when processing WM_DESTROY.
2000-11-30 20:37:29 +00:00
Ove Kaaven
2c691b31ce
Implemented Win16 behaviour of DDL_DRIVES in DlgDirList.
2000-11-25 03:06:03 +00:00
Alexandre Julliard
83f52d11c1
Moved all Win16 definitions out of the standard Windows headers.
2000-09-26 22:20:14 +00:00
Alexandre Julliard
072dfb57e3
Removed inclusion of wine/winestring.h from winbase.h and added it to
...
the C files that need it.
2000-09-25 23:30:56 +00:00
Gerard Patel
8caa407c05
In WM_DRAWITEM, always calls the app with a valid current focus_item.
2000-09-24 19:29:18 +00:00
Mike McCormack
5ae1c396cc
Avoid divide by zero when listbox set to zero height.
2000-09-09 19:39:24 +00:00
Andreas Mohr
2b5d9c6e50
Always call LISTVIEW_SetSelection() for an item, even if that item
...
has been selected before, in order to let other items get erased.
2000-08-29 03:52:16 +00:00
Alexandre Julliard
c7e7df8b17
Replaced all lstr* calls from inside Wine code by their str* equivalent.
2000-08-14 14:41:19 +00:00
Susan Farley
dbf5a4792c
Avoid resetting the background color when clearing out blank areas, as
...
it may have been set to something other than COLOR_WINDOW by the
application.
2000-08-06 03:35:52 +00:00
Gerard Patel
cef12530eb
Change logic of listbox resizing for 16 bits apps for lists without
...
LBS_NOINTEGRALHEIGHT style.
2000-08-01 20:48:40 +00:00
Gerard Patel
9788ba6e54
Set clipping region to client window before owner-drawn painting.
2000-07-16 15:39:37 +00:00
Gerard Patel
2ffbb31e3a
Make the focus follow the last selected item for multiselect listboxes.
2000-07-09 12:18:14 +00:00
Gerard Patel
ac3e81640a
Set clipping region to client window in LISTBOX_Paint.
2000-06-15 00:58:42 +00:00
Gerard Patel
41b07fb4d9
WM_SETREDRAW should repaint the listbox when set to on if something
...
has been changed.
2000-06-15 00:07:20 +00:00
Jason Mawdsley
50523d164f
Take focus before setting the caret position and selections.
2000-06-11 20:34:07 +00:00
Serge Ivanov
07917e40e8
- We can use wnd->wIDmenu for ComboLBox (it is not reset anymore in SetParent)
...
- When user clicks outside of dropped listbox, original selection must be
restored.
- ComboLBox has caret_on = FALSE on creation, that's why combobox sends
LB_CARETON message before dropping listbox down (but only for
CBS_DROPDOWNLIST - I don't now why).
2000-06-07 03:46:57 +00:00
Alexandre Julliard
72bdd5bee7
Stephane Lussier
...
Sheri Steeves
Haithem Hmida
- Height of the listbox should be adjust when LBS_OWNERDRAWFIXED is set
and not if LBS_OWNERDRAWVARIABLE is set, previously it was not adjusting
the size in both cases.
- When the caret index change, items repainting need tp be in this
order
a) Paint old caret item without the focus
b) Paint old caret item without the selection
c) Paint new caret item with the selection
d) Paint new caret item with the focus.
- When repainting the listbox, we should paint all items regarding if
they are slected or not and then paint after the focus item. So focus
item will end out being painted twice. (That's what Windows does).
2000-06-07 03:17:35 +00:00
Alexandre Julliard
ab2f43f99b
Serge Ivanov
...
- Added handling of WM_MOUSEACTIVATE message
- Added in_focus field to internal listbox's structure. This flag is set on
receiving WM_SETFOCUS message and is reseted on WM_KILLFOCUS. All calls to
GetFocus function were replaced with checks of this flag.
- In LISTBOX_HandleLButtonDown: focus is set only if 'in_focus' flag is
clear
2000-05-26 22:28:34 +00:00
Alexandre Julliard
7f90a8c900
Serge Ivanov
...
Fixed WM_LBUTTONDBLCLK handling.
2000-05-23 04:18:12 +00:00
Susan Farley
d34205ef94
Avoid calls to SetFocus when they are unnecessary.
2000-05-15 02:34:20 +00:00
Chris Morgan
c0872e3119
Fixed scrolling bug.
2000-05-07 18:24:36 +00:00
Stephane Lussier
4bdf4af11e
Implemented Mousewheel support.
2000-04-18 11:56:33 +00:00
Huw D M Davies
65a0fa6e4e
Send the correct ODA_ code when deselecting an item.
2000-03-25 21:41:17 +00:00
Yuxi Zhang
f94c3c55c1
In the listbox, when the last item is selected and deleted, it still
...
appeared in the window.
Sheri Steeves <sheri@macadamian.com>
In LISTBOX_UpdateScroll(), if the listbox did not have the WS_SCROLL
style it would just return. This left the horizontal scroll bar
uninitialized and it was appearing at the bottom of the listbox when
it did not have to.
Serge Ivanov <sergei@corel.com>
LISTBOX_SetColumnWidth adds extra 2 pixels to the passed column width
(it says it is for column margins). Obviously it is wrong, because
margins must be internal.
2000-02-26 19:13:12 +00:00
Alexandre Julliard
916f975624
Improved the selector get/set functions.
...
Support ANSI-compatible inline asm (with the help of Patrik Stridvall).
2000-02-26 16:51:13 +00:00
Jeremy White
d3e22d9d55
Removed #include of wingdi.h and windef.h from winuser.h (and resolved
...
the resulting compilation failures).
2000-02-10 19:03:02 +00:00
Marcus Meissner
ed0da3f66c
Removed 2 useless include winversion.h
...
Do not make autodetected version fix on first calls if it is Win31.
1999-12-12 00:44:06 +00:00
Dmitry Timoshkov
e0f493e5b0
Notify parent of listbox if requested.
1999-11-28 19:44:33 +00:00
Abey George
889a3be68f
Draw the item text from the top of the item rect.
1999-10-23 17:12:24 +00:00
Nick Holloway
b9ce4fd51b
For Win 3.x applications, if they have either horizontal or vertical
...
scrollbars, enable both.
1999-09-11 16:29:00 +00:00
Pierre Mageau
25c62cc61f
Set the mouse capture on the combo listbox.
1999-09-11 16:26:03 +00:00
Rein Klazes
d35c834b77
Make sure that an empty string never matches a listbox entry in
...
LISTBOX_FindString().
1999-08-21 13:04:58 +00:00
Alexandre Julliard
15de615276
Got rid of dsprintf and related macros.
1999-08-04 12:22:42 +00:00
Francis Beaudet
f6a225b84e
Changed the WS_BORDER style to a WS_EX_CLIENTEDGE style for the
...
listbox control.
1999-07-30 17:58:24 +00:00
Gerard Patel
c9a6d50c20
Several focus and selection problems in listboxes.
1999-07-25 13:03:17 +00:00
Francis Beaudet
6ec3eaf54b
Fixed a few behaviors of the combobox that were broken.
1999-06-12 10:51:19 +00:00
Paul Quinn
7572207564
Stop a listbox bug that causes a div by zero when the item height
...
is zero. Doesn't solve the root of the problem though.
1999-05-22 18:45:06 +00:00
Alexandre Julliard
9fe7a2545a
Converted to the new debug interface, using script written by Patrik
...
Stridvall.
1999-05-14 08:17:14 +00:00
Gerard Patel
777508a214
Values returned from PtInRect and LB_ITEMFROMPOINT are reversed.
1999-05-08 12:35:17 +00:00