Frank Richter
8002c49ede
comctl32: listview: Fix getting user params and subitems.
...
When querying a listview subitem for the user param, the main item's
user param is returned. Also, when a subitem is custom-drawn, the main
item's user param is passed along.
2006-12-29 20:55:04 +01:00
Mikołaj Zalewski
1e9acccefd
comctl32: listview: Update the scroll bars after resizing the last column.
2006-10-16 17:05:54 +02:00
Michael Ploujnikov
1c16d83379
comctl32: Win64 printf format warning fixes.
2006-10-14 20:17:06 +02:00
Mikołaj Zalewski
056d004b3b
comctl32: listview: Don't call ScrollColumn with an out of bounds index when resizing the last column.
2006-10-12 12:53:26 +02:00
James Hawkins
cd073a66a5
comctl32: Make internal functions static.
2006-10-12 11:35:05 +02:00
Francois Gouget
20eb2f9998
comctl32: Fix LVM_GETITEM/LVIF_STATE so it only returns the bits it
...
has been asked for, and sets all the others to zero (with conformance
test).
2006-10-03 20:18:57 +02:00
Francois Gouget
222c167969
Assorted spelling fixes.
2006-09-29 16:28:30 +02:00
Mikołaj Zalewski
9de2c506dd
comctl32: listview: Don't edit labels after the first click of a double click.
2006-09-14 11:11:40 +02:00
Mikołaj Zalewski
88b0e04de7
comctl32: listview: Don't edit labels on click if the view was not focused.
2006-09-14 11:10:59 +02:00
Huw Davies
f01ae8ace9
comctl32: All items should be marked as unchecked when LVS_EX_CHECKBOXES is initially set.
...
When a new item is added with LBS_EX_CHECKBOXES already set then that item is marked as unchecked.
2006-07-18 11:09:27 +02:00
Paul Vriens
412aa2a10d
comctl32: Use struct member after check for NULL (Coverity).
2006-07-17 13:53:49 +02:00
Mikołaj Zalewski
2248217157
comctl32: listview: Recompute header size after an insertion of a column.
2006-07-05 12:56:24 +02:00
Mike McCormack
f86270a022
comctl32: Arrange the listview after deleting all items so we will place icons at the top again.
2006-06-15 11:39:29 +02:00
Mike McCormack
52c204be88
comctl32: Use the listview's background colour when drawing with imagelist.
2006-06-15 11:39:29 +02:00
Mikołaj Zalewski
bfe030dfed
comctl32: listview: Apply the HDS_DRAGDROP header style if needed.
...
Apply the HDS_DRAGDROP header style if the listview has the
LVS_EX_HEADERDRAGDROP. Block the columns reordering as the listview
doesn't support them.
2006-05-26 11:57:05 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Mikołaj Zalewski
117b8e7927
comctl32: listview: Recompute sizes after a column deletion.
2006-05-17 21:01:30 +02:00
Mikołaj Zalewski
700dd456e9
comctl32: listview: Store the iSubItem in header's lParam in LVM_INSERTCOLUMN.
2006-05-15 14:46:30 +02:00
Mikołaj Zalewski
cb3424f642
comctl32: Scroll listview if changing scroll bounds changes the scroll pos.
2006-04-18 11:16:26 +02:00
Aric Stewart
097aec39ca
comctl32: Listview notify fix.
...
Turn off updating for that the unselect and select and then turns it
on for the focus call, this results in 1 edit notify being sent at the
end of the operation.
2006-04-17 11:18:13 +02:00
Mikołaj Zalewski
e55c44c737
comctl32: Fix listview column resize.
...
Draw a track line after a HDN_TRACK, resize the columns only after a
HDN_ITEMCHANGED.
Create the header with HDS_FULLDRAG.
2006-04-12 19:52:34 +02:00
Mike McCormack
ecaa525a3f
comctl32: Get rid of some incorrect casts.
2006-03-20 22:08:44 +01:00
Peter Åstrand
c5552a694b
comctl32: LISTVIEW_InsertItemT should accept iItem < 0, when using sorted lists.
2006-03-08 11:32:46 +01:00
Mike McCormack
2dfe50aa3f
comctl32: Fix some gcc 4.1 warnings caused by windowsx.h macros.
2006-03-03 13:18:50 +01:00
Maarten Lankhorst
15ca9ce672
comctl32: Restore listview font on CDRF_NEWFONT.
2006-01-31 12:21:51 +01:00
Dmitry Timoshkov
6d32c42ced
comctl32: Make listview use standard wine_dbg_sprintf and wine_dbgstr_xxx.
2006-01-24 11:04:32 +01:00
Vitaliy Margolen
a8e59b1c52
comctl32: Listview - allow selection toggle with ctrl+space.
2006-01-03 12:11:18 +01:00
Francois Gouget
0edbaf7e80
Remove spaces before '\n' in traces.
2005-11-10 12:14:56 +00:00
Francois Gouget
f4c0524ec6
Assorted spelling and case fixes.
2005-11-10 11:39:07 +00:00
Dimi Paun
cd1b13fb7d
Validate the column index passed in by the caller.
2005-11-05 10:42:35 +00:00
Ulrich Czekalla
795de499d5
Clear bLButtonDown flags if mouse is not down.
2005-11-02 10:56:12 +00:00
Troy Rollo
c0b79e0b05
Detect when the notification callback has destroyed the ListView to
...
avoid attempts to access data that is no longer valid.
2005-10-21 15:49:36 +00:00
Vitaliy Margolen
8fb6037626
Correct Page Up/Down handling in report mode.
2005-10-04 17:58:46 +00:00
Vitaliy Margolen
6ab0b0194d
Don't start dragging for a single mouse click.
2005-10-04 15:50:24 +00:00
Michael Jung
aa0da30296
Fixed inconsistency in LISTVIEW_DUMP macro.
2005-09-13 14:30:53 +00:00
Frank Richter
9e57091ffa
Fix warnings in 64bit.
2005-08-30 10:07:17 +00:00
Frank Richter
db5b331f3a
Remove unneeded theming check.
2005-08-03 10:56:14 +00:00
Vitaly Lipatov
2af4200877
Use STATEIMAGEINDEX / INDEXTOSTATEIMAGEMASK instead of bit
...
operations.
2005-08-02 09:47:18 +00:00
Frank Richter
d219a54e80
Since OpenThemeData() should return 0 in case theming is disabled
...
globally or for the application we don't need to check that when
calling OpenThemeData().
2005-07-27 15:16:09 +00:00
Frank Richter
d42210dd11
Use theming for the ListView non-client area.
2005-07-25 11:09:38 +00:00
Dimi Paun
ebe8b2292a
Silence uninitialized warnings.
2005-07-18 09:10:31 +00:00
Kevin Koltzau
28f15a3bdf
Forward some header notifications to parent of listview.
2005-07-15 11:42:47 +00:00
Stefan Huehner
ac6f562b52
Fix more -Wstrict-prototypes warnings.
2005-06-20 14:18:03 +00:00
Mike McCormack
882bc4d18d
Warning fixes for -Wmissing-declarations and -Wwrite-strings.
2005-06-09 09:50:56 +00:00
Felix Nawothnig
7572fd3870
Fix some missed invalidations after column resize.
2005-06-04 10:00:12 +00:00
Kouji Sasaki
6b5b0b9195
Added the feature to change row height in owner draw controls.
2005-05-30 11:10:01 +00:00
Felix Nawothnig
92f9c3f1b9
Pass the right hwnd to ReleaseDC().
2005-05-29 20:02:32 +00:00
Kouji Sasaki
d8c100478e
Added the callback item processing for LISTVIEW_EndEditLabelT
...
function.
2005-05-26 12:23:38 +00:00
Kouji Sasaki
2218c6e479
Corrected the priority of operators for LISTVIEW_GetNextItem
...
function.
2005-05-25 09:53:46 +00:00
Kouji Sasaki
31f718b8bf
Added handling of WM_ENABLE message.
2005-05-24 11:46:53 +00:00
James Hawkins
40c8f1bc02
Audit the List-View control.
2005-05-24 09:50:23 +00:00
James Hawkins
5e6b43e2a0
Select the item under the point (x,y) in MouseHover.
2005-05-20 19:16:23 +00:00
Dimi Paun
5631d063f4
Do not compute the hit test if we don't really need it.
2005-05-19 14:21:55 +00:00
James Hawkins
b96eb4d3b0
- Store the click point in LISTVIEW_INFO.
...
- Move mouse tracking to MouseMove.
- Use DragDetect instead of TrackMouse.
- Remove the unused TrackMouse function.
2005-05-18 15:30:48 +00:00
Felix Nawothnig
43201e072b
Resize listview column to autofit on a doubleclick on the
...
header-divider.
2005-05-18 09:47:30 +00:00
Francois Gouget
f5c9da6860
Assorted spelling fixes.
2005-05-06 15:44:31 +00:00
Dimitrie O. Paun
2e0a14820b
Add support for LVN_ODSTATECHANGED.
...
Minor typo fixes.
2005-04-14 13:58:25 +00:00
Robert Shearman
ea84f49393
Use ES_AUTOHSCROLL for edit box.
2005-04-12 10:16:23 +00:00
Dimitrie O. Paun
8df71a6cfa
Use {Alloc,ReAlloc,Free}() instead of Heap{Alloc,ReAlloc,Free}().
2005-03-25 20:49:00 +00:00
Francois Gouget
93416cdaf7
Assorted spelling fixes.
2005-03-23 13:15:18 +00:00
Maxime Bellengé
33c7e15f77
Take into account the new size of a column when the header size
...
change.
2005-02-21 20:38:31 +00:00
Dmitry Timoshkov
39f960bdfa
- Fix prototypes of GetClassLongA/W, GetClassLongPtrA/W and
...
SetClassLongA/W according to SDK definitions.
- Add prototypes for SetClassLongPtrA/W, protect some GWL_ and GCL_
constants from using in Wine or in _WIN64 mode.
- Fix all places in Wine affected by the above changes.
2005-02-15 21:51:06 +00:00
Francois Gouget
da8b3dd7f2
Assorted spelling fixes.
2005-01-26 21:09:04 +00:00
Dimitrie O. Paun
3bc9380619
Use the LVCFMT_{LEFT,RIGHT,CENTER} enumeration flags properly.
2005-01-14 16:21:41 +00:00
Eric Pouech
cf1d00bb08
Removed excessive statement (break after return or goto, not useful
...
break, not needed vars...)
2005-01-09 16:42:53 +00:00
Ulrich Czekalla
e05dcc2975
Add partial handler for WM_PRINTCLIENT.
2004-12-20 16:55:57 +00:00
Alexandre Julliard
a79c534c0e
Avoid using the MAKEPOINTS macro, it's broken on big endian.
2004-11-24 18:28:31 +00:00
Zach Gorman
4b5a5868f1
Add the DT_NOPREFIX flag when calling DrawText() for single-line
...
listview controls.
2004-11-19 18:09:29 +00:00
Robert Shearman
8d28e0314c
Remove unnecessary WNDPROC casts.
2004-11-06 03:49:03 +00:00
Dimitrie O. Paun
f07f08cfe6
Send notification messages in the format dictated by
...
infoPtr->notifyFormat.
2004-11-01 21:07:11 +00:00
Hans Leidekker
411fc5f164
Fix signed/unsigned comparison warnings.
2004-09-02 23:00:53 +00:00
Robert Shearman
cdb263e588
Replace GetWindowLong by GetWindowLongPtr.
2004-08-25 17:33:01 +00:00
Mike McCormack
a3a19355cd
Prevent listview from crashing when a null sort function is passed to
...
LVM_SORTITEMS.
2004-08-12 20:01:55 +00:00
Filip Navara
ab13698998
Don't update infoPtr->dwStyle in LISTVIEW_WindowProc. It's already
...
handled in LISTVIEW_StyleChanged and LISTVIEW_Create processing.
Ignore WS_VSCROLL/WS_HSCROLL flags in infoPtr->dwStyle because they're
not always up-to-date.
2004-08-11 20:53:32 +00:00
Mike McCormack
4f7ad78bd9
Create a tooltip on demand in the Listview.
2004-07-06 21:27:34 +00:00
Dimitrie O. Paun
4b6ed4ed84
Clear the state image bits only if LVS_EX_CHECKBOXES is set.
...
Fix obvious logical error in focus handling.
Indentation and formatting fixes.
(based on a patch by Krishna Murthy).
2004-06-04 17:58:29 +00:00
Ulrich Czekalla
fc9be6a599
Handle case where iterator range contains 0 elements.
2004-05-11 22:16:54 +00:00
Huw Davies
69f2e04ff8
Deleting column zero should only delete the column and not the item
...
data.
2004-04-21 22:25:04 +00:00
Francois Gouget
52c0832161
Make Unicode strings static const.
2004-04-20 01:12:17 +00:00
Robert Shearman
3c6956d3ea
Spelling fixes.
2004-03-11 00:39:53 +00:00
Dimitrie O. Paun
e879638d36
LVN_BEGINRDRAG is implemented now. Fix typo.
2004-02-20 05:12:49 +00:00
Aric Stewart
d240ae8d62
Implemented LISTVIEW_ApproximateViewRect for LVS_REPORT.
2004-02-20 01:05:39 +00:00
Fabian Cenedese
7142a4e0b2
ListView should behave in OWNERDRAW as in FULLROWSELECT. This allows
...
to select cells not in the first column in REPORT mode with OWNERDRAW
style set.
2004-02-17 22:47:51 +00:00
Aric Stewart
e56178d9d5
Work toward properly updating the SelectionMark when the selected
...
state changed inside a listbox.
2004-02-13 22:40:37 +00:00
Jon Griffiths
b56583ec1a
Don't call GetWindowLong for every comparison while sorting.
2003-12-10 00:37:14 +00:00
Rein Klazes
b76e883344
The LVN_GETDISPINFO notify message should point to the same iSubItem
...
as in the call to LISTVIEW_GetItemT, valid or not. Fix a badly placed
brace.
2003-11-18 19:38:30 +00:00
Aric Stewart
89ba8760f3
We need to make sure that customdraw_fill is called even if
...
CDRF_NOTIFYITEMDRAW is not being used because we used the text and
background colors from that struct later.
2003-11-18 00:04:27 +00:00
Rein Klazes
7b6b9d6e93
Ignore invalid iSubItem in LISTVIEW_GetItemT().
2003-11-17 20:01:49 +00:00
Huw Davies
83e9fd8513
Implemented LVS_EX_CHECKBOXES.
2003-11-13 20:50:25 +00:00
Huw Davies
ac24a0a692
A multicolumn listview should get a customdraw notification for the
...
item as well as one for subitem 0.
2003-11-12 22:41:27 +00:00
Huw Davies
818c5861c4
Add support for LVS_EX_SUBITEMIMAGES.
2003-11-11 00:26:15 +00:00
Huw Davies
a7c4fa8119
ReleaseCapture on lbuttondown if the cursor is outside an item, just
...
like the native one does.
2003-11-09 00:27:20 +00:00
Huw Davies
4de17c3724
LISTVIEW_GetSubItemRect should succeed if subitem == 0 whatever mode
...
the listview is in.
2003-11-05 00:35:57 +00:00
Alexandre Julliard
55cb8177b5
Authors: Ulrich Czekalla <ulrich@codeweavers.com>, Huw Davies <huw@codeweavers.com>
...
Added drag and drop support to listview.
2003-11-04 04:22:37 +00:00
Huw Davies
b37adfb4b5
Make the listview send its notifications to the parent window passed
...
to it in CREATESTRUCT. Based on a treeview patch by Igor Grahek.
2003-11-03 22:15:22 +00:00
Daniel Marmier
ee1eb63b31
Fixed warnings with gcc option "-Wwrite-strings".
2003-10-07 03:30:47 +00:00
Dimitrie O. Paun
7de279a73a
Rename COMCTL32_{Alloc,ReAlloc,Free} to {Alloc,ReAlloc,Free}.
2003-09-22 21:32:33 +00:00
Maxime Bellengé
e5cd5a778a
When an item is activated, we should send a NMITEMACTIVATE struct and
...
not a NMHDR one.
2003-09-22 19:27:33 +00:00
Alexandre Julliard
f5cb3dde17
Moved undocumented functions out of the exported commctrl.h.
2003-09-17 20:15:21 +00:00
Alexandre Julliard
9d61596624
SLOWORD and SHIWORD do not exist on Win32 (reported by Filip Navara).
2003-09-17 04:28:28 +00:00