Commit Graph

812 Commits

Author SHA1 Message Date
Daniel Jelinski c1157b79fd comctl32: Properly initialize internal structures. 2012-11-27 19:45:38 +01:00
Daniel Jelinski e9e09b66a0 comctl32: Move WM_SIZE handling into WM_WINDOWPOSCHANGED. 2012-11-13 16:54:54 +01:00
Daniel Jelinski ae72b21641 comctl32: Clean up listview resizing code. 2012-10-01 12:20:30 +02:00
Daniel Jelinski 0edb0233a4 comctl32: Use GetWindowLong to check for scrollbar.
dwStyle is updated only in WM_STYLECHANGED, which is not sent
when displaying and hiding scrollbars.
2012-10-01 12:20:09 +02:00
Daniel Jelinski 425f0a25d6 comctl32: Invalidate correct rectangle for marquee selection. 2012-09-12 12:48:50 +02:00
Alexandre Julliard 0e9c9772ef comctl32: XOR'ing with a black pen is not useful. 2012-09-10 11:38:21 +02:00
Daniel Jelinski e389326bdd comctl32/listview: Do not draw unnecessary grid lines. 2012-09-03 16:45:50 +02:00
Francois Gouget bede13b335 comctl32: Fix lstrncmpiW() so its return value is standard and use the CSTR_XXX macros. 2012-06-20 10:27:36 +02:00
Nikolay Sivov 6560d88151 comctl32/listview: Properly update selection mark on item state change. 2012-06-11 12:19:07 +02:00
Piotr Caban 25f347892e comctl32: Make icons not overlapping in LVS_ICON mode. 2012-05-10 18:42:06 +02:00
Piotr Caban 8276a3375b comctl32: LVM_SETITEMTEXT is not supported on LVS_OWNERDATA. 2012-05-10 18:41:55 +02:00
Nikolay Sivov b326426fec comctl32: Use single notification message for setting all item state with LVM_SETITEMSTATE (LVS_OWNERDATA case only). 2012-03-26 18:15:51 +02:00
Nikolay Sivov 485fde811d comctl32/listview: Create header when LVS_EX_FULLROWSELECT is requested. 2011-12-09 21:15:26 +01:00
Nikolay Sivov dfbe664548 comctl32/listview: Create header when LVS_EX_GRIDLINES style is set. 2011-12-05 12:23:24 +01:00
Henri Verbeet b99a2a9ff8 comctl32: Avoid using __FUNCTION__ in ranges_check. 2011-11-07 11:32:38 +01:00
Andrew Talbot 92c408cd66 comctl32: Remove unneeded address-of operator from function name. 2011-08-30 11:54:40 +02:00
Frédéric Delanoy f932abf326 dlls: Assorted spelling fixes. 2011-08-01 18:26:27 +02:00
Piotr Caban c47c62a802 comctl32: Don't invalidate item in LISTVIEW_SetItemT when its state has not changed. 2011-07-21 16:28:31 +02:00
Nikolay Sivov 0a92c01a57 comctl32/listview: Don't invalidate list on LVM_SETBKCOLOR. 2011-07-20 19:23:05 +02:00
Nikolay Sivov 43a199d54d comctl32/listview: Don't invalidate list on LVM_SETTEXTCOLOR. 2011-07-20 19:23:05 +02:00
Nikolay Sivov 4fc8c44bf1 comctl32/listview: Don't invalidate list on LVM_SETTEXTBKCOLOR. 2011-07-20 19:23:05 +02:00
Piotr Caban 8669fa7308 comctl32: Make iterator_remove_common_items working on one range iterators. 2011-06-28 10:18:57 -05:00
Piotr Caban 7366d159fc comctl32: Don't redraw whole listview in double buffering mode. 2011-06-20 19:32:05 +02:00
Piotr Caban 02c224edf9 comctl32: Refresh listview after sorting. 2011-06-20 19:32:05 +02:00
Piotr Caban 1a67903b04 comctl32: Fix area invalidated by LISTVIEW_SetItemT. 2011-06-20 19:32:05 +02:00
Piotr Caban 734a4c3aec comctl32: Fix ListView_Scroll implementation. 2011-06-07 14:18:32 +02:00
Piotr Caban b2cb04b4e6 comctl32: Fix listview horizontal scrolling. 2011-06-07 14:18:32 +02:00
Piotr Caban a87e726d6b comctl32: Improve LISTVIEW_MarqueeHighlight performance. 2011-06-07 14:18:32 +02:00
Nikolay Sivov c6dd14199c comctl32/listview: Fix parameter validation for LVM_SETITEMTEXT. 2011-05-13 10:55:43 +02:00
Nikolay Sivov 69bcdb7aad comctl32/listview: Don't forward HDN_ITEMCHANGING/HDN_ITEMCHANGED to listview parent. 2011-05-11 14:56:49 +02:00
Nikolay Sivov 34d86a2d17 comctl32/listview: Make edit box handle available from LVN_ENDLABELEDIT notification. 2011-05-09 11:44:30 +02:00
Nikolay Sivov 740e7be128 comctl32/listview: Don't refuse to set subitem data when some extra flag is specified. 2011-05-06 16:42:01 +02:00
Nikolay Sivov 7bdcbfb9a0 comctl32/listview: Fix edit box text limit. 2011-03-28 17:31:25 +02:00
Nikolay Sivov 124eaa046f comctl32/listview: Adjust dispinfo text buffer length. 2011-03-28 17:31:21 +02:00
Nikolay Sivov 1734577731 comctl32/listview: Fix dead condition (Coverity). 2011-02-25 11:09:15 +01:00
Alexander Scott-Johns 60b5d91abb comctl32: Fix read of uninitialized data in notify_itemactivate (Valgrind). 2011-02-21 12:46:26 +01:00
Alexander Scott-Johns f2df2f38e6 comctl32: Fix read of uninitialized data in LISTVIEW_GetItemExtT when LVIF_TEXT is not set (Valgrind). 2011-02-21 12:46:14 +01:00
Alexander Scott-Johns e2d4775233 comctl32: Fix read of uninitialized data in LISTVIEW_HeaderNotification and rename it to LISTVIEW_Notify (Valgrind). 2011-02-17 17:31:22 +01:00
Nikolay Sivov 6992ccc042 comctl32/listview: Remove duplicated operation (LLVM/Clang). 2011-02-07 10:08:31 -06:00
Nikolay Sivov e8b73fa8f3 comctl32/listview: Remove some useless operations (LLVM/Clang). 2011-02-07 10:08:25 -06:00
Nikolay Sivov b5ddadce6f comctl32/listview: Remove couple of dead assignments (LLVM/Clang). 2011-02-07 10:08:04 -06:00
Gerald Pfeifer b227f75435 comctl32: Remove the last, unused parameter from LISTVIEW_HScroll. 2011-01-03 11:29:09 +01:00
Nikolay Sivov f0f3157da1 comctl32/listview: Don't touch out text pointer if it wasn't requested. 2010-12-03 13:13:45 +01:00
Nikolay Sivov 119860b05f comctl32/listview: Use a code set by dispinfo holder to convert data encoding after LVN_GETDISPINFO. 2010-11-17 11:19:32 +01:00
Nikolay Sivov 03bd3c8040 comctl32/listview: Use actual edit box contents to calculate initial control size. 2010-10-04 15:00:07 +02:00
Nikolay Sivov 5d657a106f comctl32/listview: Use proper A/W call to measure item text string. 2010-09-27 14:13:16 +02:00
Austin English 76ba45e5ab comctl32: Fix compiler warnings on Clang. 2010-09-20 13:57:40 +02:00
Gerald Pfeifer 84a6598290 comctl32: Remove the last, unused parameter from LISTVIEW_VScroll and all its invocations. 2010-08-23 13:37:01 +02:00
Nikolay Sivov ce5a06c1b0 comctl32/listview: Fix infinite loop case for full item range as a first search range. 2010-08-20 13:21:34 +02:00
Gerald Pfeifer ab575718ce comctl32: Merge is_textT and is_textW into a single is_text. 2010-08-16 15:54:22 +02:00
Andrew Talbot 2b9ff98203 comctl32: Constify some variables. 2010-08-02 12:55:21 +02:00
Nikolay Sivov 01fdf21717 comctl32/listview: Perform ranges validation only when tracing enabled. 2010-05-26 17:36:32 +02:00
Nikolay Sivov 61c8a30574 comctl32/listview: Fix vertical position offset for subitem rectangle. 2010-05-24 11:30:33 +02:00
Nikolay Sivov 5d708246d7 comctl32/listview: Don't forward WM_COMMAND to parent if we don't have an Edit box. 2010-05-21 14:37:52 +02:00
Andrew Eikum fe92119f53 comctl32/listview: Derive subitem rect from listview origin. 2010-05-18 18:42:18 +02:00
Gerald Pfeifer 00d5f87d30 comctl32: Remove document of (already removed) infoPtr from LISTVIEW_StyleChanged. 2010-05-13 11:51:19 +02:00
Gerald Pfeifer b2ff743ccb comctl32: Remove unused variable infoPtr from TVIEW_StyleChanging. 2010-05-12 18:48:11 +02:00
Gerald Pfeifer 1bca01cbc1 comctl32: Remove unused parameter bEnable from LISTVIEW_Enable. 2010-05-11 11:09:51 +02:00
Gerald Pfeifer 0453154d99 comctl32: Remove unused parameter fwKeys from LISTVIEW_MouseHover. 2010-05-11 11:09:46 +02:00
Nikolay Sivov d57247ce39 comctl32/listview: Rework item selection with letter keys, fix some glitches. 2010-04-27 15:44:34 -05:00
Nikolay Sivov 379cf46873 comctl32/listview: Don't change Z-order of edit window while resizing edit box. 2010-04-25 19:22:18 -05:00
Nikolay Sivov 1ccbadcf23 comctl32/listview: Remove forward declaration and unused parameter from edit box creation helper. 2010-04-25 07:34:49 -05:00
Nikolay Sivov dd3fc17884 comctl32/listview: Add callback subitem on column insertion. 2010-04-22 18:11:42 +02:00
Nikolay Sivov 7d846eb19f comctl32/listview: Properly handle subitem hittesting outside of horizontal columns bounds. 2010-04-21 11:57:32 +02:00
Gerald Pfeifer aa745feddc comctl32: Remove unused scrollInfo from LISTVIEW_MouseWheel. 2010-04-20 16:22:23 +02:00
Nikolay Sivov 7371d0d2fc comctl32/listview: Exit early on LVM_CREATEDRAGIMAGE if null pointer passed for a point. 2010-04-20 16:21:37 +02:00
Mikhail Maroukhine bd6f218165 comctl32: Fix compiler warnings with flag -Wcast-qual. 2010-03-26 10:32:33 +01:00
Jeff Latimer 4f20455e4c comctl32: cchTextMax needs to be set for LVS_OWNERDATA as it uses LVN_GETDISPINFO notifications. 2010-03-15 15:13:54 +01:00
Dylan Smith a7053ecc4c comctl32/listview: Scrolling affects subitem rect. 2010-03-03 11:52:21 +01:00
Dmitry Timoshkov c1fd55d6c9 comctl32: Listview should accept both unicode and ansi notifications.
Listview receives notifications not only from built-in header control,
but also from custom or subclassed application controls, there is no
need to assert(0) on application input, printing a FIXME is the maximum
we can do on an unknown input.
2010-02-18 15:01:01 +01:00
Nikolay Sivov 057267d85e comctl32/listview: Revert item width calculation to fix performance issues. 2010-02-08 17:49:47 +01:00
Jason Edmeades 81d8135424 comctl32/listview: Issue LVM_DELETEALLITEMS from WM_DESTROY. 2010-01-14 10:22:23 -06:00
Marcin Baczyński 9e951e8d14 comctl32: Remove superfluous void* cast. 2010-01-07 17:59:57 +01:00
Nikolay Sivov 6ca7654ec7 comctl32/listview: Fix memory leak on subrange deletion. 2010-01-07 09:26:00 +01:00
Michael Stefaniuc 9dd502a332 comctl32: Remove some explicit LPARAM/WPARAM casts. 2009-12-28 12:27:14 +01:00
Nikolay Sivov c2a7535e9d comctl32/listview: Update item width every time new item is inserted.
This prevents retaining previously stored width and unexpected item
displaying collapsing with ending ellipsis.
2009-12-09 14:25:21 +01:00
Nikolay Sivov 78e7b3cf9c comctl32/listview: New hover value should be passed using LPARAM. 2009-11-30 12:56:30 +01:00
Nikolay Sivov ea058d22ba comctl32/listview: Add NM_HOVER notification. 2009-11-30 12:56:21 +01:00
Nikolay Sivov 5f191553e8 comctl32/listview: Make mouse hover work.
Event data was overwritten by TME_QUERY response.
2009-11-30 12:56:05 +01:00
Nikolay Sivov 8eb9e7ebd5 comctl32/listview: Draw LVIS_CUT items with white foreground color. 2009-11-30 12:55:50 +01:00
Nikolay Sivov 999810566b comctl32/listview: Implement LVS_EX_HEADERINALLVIEWS. 2009-11-30 12:55:43 +01:00
Nikolay Sivov dcd54f08fc comctl32/listview: Get rid of helper used once. 2009-11-30 12:55:23 +01:00
Nikolay Sivov a729e040e6 comctl32/listview: Further winproc simplification. 2009-11-30 12:55:12 +01:00
Nikolay Sivov 60f0f4e8ca comctl32/listview: Call default procedure directly from handlers if such forwarding needed. 2009-11-30 12:55:00 +01:00
Nikolay Sivov 8d43bdd2ee comctl32/listview: Remove parameter check from winproc for LVM_SETITEMPOSITION32. 2009-11-30 12:54:37 +01:00
Nikolay Sivov 62c610df3c comctl32/listview: Collapse some handlers call in winproc. 2009-11-30 12:54:01 +01:00
Nikolay Sivov fc43895f49 comctl32/listview: Default column width in LVS_LIST to better value. 2009-11-30 12:53:40 +01:00
Nikolay Sivov 850ea2a711 comctl32/listview: Add support for LVFI_SUBSTRING. 2009-11-23 10:38:13 +01:00
Nikolay Sivov b7b7b7113e comctl32/listview: Fix find using partial string logic. 2009-11-23 10:38:00 +01:00
Nikolay Sivov 90c4abe86f comctl32/listview: Add LVSIL_GROUPHEADER definition. 2009-11-23 10:37:44 +01:00
Nikolay Sivov 79c55c5dd1 comctl32/listview: Group control data members, there's no reasonable structure here. 2009-11-23 10:37:23 +01:00
Nikolay Sivov 899a53eda5 comctl32/listview: Send LVN_ENDLABELEDIT in any case, but with null text if it's the same. 2009-11-23 10:37:03 +01:00
Nikolay Sivov f5f0763827 comctl32/listview: Don't forward WM_COMMAND (EN_KILLFOCUS) from Edit to parent window. 2009-11-23 10:36:51 +01:00
Nikolay Sivov c39268967d comctl32/listview: Do nothing on LVM_CANCELEDITLABEL if there's no label. 2009-11-23 10:36:41 +01:00
Nikolay Sivov b0861921b2 comctl32/listview: Compare item text on insert depending on A/W message. 2009-11-19 14:24:31 +01:00
Owen Rudge e1f3edef3e comctl32: Add support for scrolling during marquee selection. 2009-11-04 13:07:57 +01:00
Owen Rudge c1877a2d50 comctl32: Cancel marquee selection if we lose focus in listview. 2009-11-04 13:07:57 +01:00
Owen Rudge 038e36aded comctl32: Move marquee logic into separate function. 2009-11-04 13:07:57 +01:00
Owen Rudge 14991b78d8 comctl32: Add absolute version of iterator_frameditems. 2009-11-04 13:07:57 +01:00
Nikolay Sivov a061d3a0d4 comctl32: Fix imagelist leak when switching LVS_EX_CHECKBOXES style. 2009-10-22 14:37:13 +02:00