Commit Graph

137 Commits

Author SHA1 Message Date
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
Francois Boisvert 428d298a64 Prevented LISTBOX_RepaintItem from repainting a non visible item. 1999-05-08 09:33:53 +00:00
Alexandre Julliard 06c275a643 Converted to the new debugging interface (done with the help of the
script written by Patrik Stridvall).
1999-05-02 14:32:27 +00:00
Marcus Meissner 9aded5135c Removed the gotos from the WndProcs, always use a small wrapper that
locks the window, calls the real wndproc, unlocks the window.
1999-05-01 10:23:45 +00:00
Patrik Stridvall 0f8bc5b5c7 Fixed ANSI compabillity. 1999-04-22 16:27:50 +00:00
Patrik Stridvall b4b9fae671 New debug scheme with explicit debug channels declaration. 1999-04-19 14:56:29 +00:00
Luc Tourangeau 891479963e When the vertical scrollbar is removed, the background was not
properly repainted.
1999-04-18 09:23:56 +00:00
Luc Tourangeau 5ee117ba22 WM_MOUSEMOVE implementation bug fix. 1999-04-04 12:48:21 +00:00
Francis Beaudet f585c61dd1 Implemented the Win95 look and feel. 1999-04-02 10:37:42 +00:00
Francis Beaudet 8730e4572d Fixed LB_GETCURSEL message to return LB_ERR on empty list. 1999-03-25 13:22:02 +00:00
Lawson Whitney 613092a6a5 Made LB_GETCURSEL return focus_item if no item has been selected. 1999-03-22 14:46:43 +00:00
Francois Boisvert 6b1b41cf85 Made access to the wnd struct thread-safe. 1999-03-14 17:25:32 +00:00
David Luyer ee517e863e - fixed missing stdlib.h and string.h includes everywhere
- removed a couple of unneeded stdlib.h and stdio.h includes
1999-02-28 12:27:56 +00:00
Alexandre Julliard a396029270 Large-scale renaming of all Win32 functions and types to use the
standard Windows names.
1999-02-26 11:11:13 +00:00
NF Stevens 762f18d664 Change SW_??? options on list box scrolling so that they match what
Windows does.
1999-01-24 19:02:16 +00:00
Marcus Meissner 9ad9017edd Do not call ownerdraw for invalid items (empty focusrects).
Fixes Eudora 16bit empty Inbox problem.
1999-01-20 14:08:00 +00:00
Alexandre Julliard 638f169b1e Recovery of release 990110 after disk crash.
See Changelog for changes between 990103 and 990110.
1999-01-17 16:32:32 +00:00
Alex Korobka 311d329cb8 Better CB_SETCURSEL message handling. 1999-01-01 18:40:02 +00:00
Gerard Patel c979b7b09c Don't send ODA_ENTIRE for empty listboxes (LISTBOX_Paint). 1998-12-24 16:25:50 +00:00
Marcus Meissner 4f7dc46ca2 LB_GETTEXT: Handle passed NULL buffer. 1998-11-22 15:43:34 +00:00