Commit Graph

123 Commits

Author SHA1 Message Date
Paul Vriens ddf0049e9c comctl32/header: Check Null before accessing struct member. 2006-06-02 11:22:26 +02:00
Mikołaj Zalewski baea6498dd comctl32: header: Update the rects in HEADER_Refresh if needed. 2006-06-01 11:08:09 +02:00
Mikołaj Zalewski 414128eb94 comctl32: header: Ignore out-of-range iOrder in SetItemT. 2006-05-30 19:30:51 +02:00
Mikołaj Zalewski ee430bf7b8 comctl32: header: Put the new item in place of the hot divider instead of swapping. 2006-05-26 12:00:57 +02:00
Mikołaj Zalewski 7ab41112ae comctl32: header: Draw the drag image and hot dividers while dragging an item. 2006-05-26 12:00:29 +02:00
Mikołaj Zalewski 89b62b48c6 comctl32: header: Fix an order-related bug in HEADER_InternalHitTest. 2006-05-26 11:59:11 +02:00
Mikołaj Zalewski 7e461db203 comctl32: header: Implement HDM_SETHOTDIVIDER. 2006-05-26 11:58:28 +02:00
Mikołaj Zalewski 4301543533 comctl32: header: Implement HDM_CREATEDRAGIMAGE. 2006-05-26 11:58:08 +02:00
Mikołaj Zalewski b8da6f2751 comctl32: header: Don't try to draw items outside the clipping rect. 2006-05-23 17:53:08 +02:00
Mikołaj Zalewski 64e5779c16 comctl32: header: Make the column resizing smooth in full drag mode.
Make the column resizing smooth in full drag mode even for listview
with lots of elements by redrawing only the resized column and calling
UpdateWindow.
2006-05-23 17:52:57 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mikołaj Zalewski 4b25b346ee comctl32: header: Make sure no message is sent between PrepareCallbackItems/FreeCallbackItems. 2006-05-20 14:09:03 +02:00
Mikołaj Zalewski c932852bd4 comctl32: header: Don't erase the background in HEADER_Refresh. 2006-05-20 14:08:44 +02:00
Mikołaj Zalewski c054c1fe0e comctl32: header: The border size is 4 not 3. 2006-05-20 14:08:27 +02:00
Mikołaj Zalewski 3897015580 comctl32: header: Don't erase the left header egde. 2006-05-17 21:01:54 +02:00
Mikołaj Zalewski 28e3ba552e comctl32: header: Send the width in HDN_BEGINTRACK. 2006-05-17 21:01:39 +02:00
Mikołaj Zalewski 36a8e5fba3 comctl32: header: Fix INSERTITEM on a zero mask and GETITEM on a mask with unknown fields.
INSERTITEM should fail on a zero mask. If in GETITEM the mask has an
unknown field it should store only the comctl32 4.0 fields (with test
case).
2006-05-16 20:23:39 +02:00
Mikołaj Zalewski bf346b240d comctl32: header: Copy some fields on INSERTITEM even if they are not in the mask. 2006-05-16 20:22:27 +02:00
Mikołaj Zalewski 3eccdfcca7 comctl32: header: Automatically set some format fields. 2006-05-16 20:22:11 +02:00
Mikołaj Zalewski 74c3b366d3 comctl32: header: Correct HDN_GETDISPINFO. Use it during drawing.
Improve HEADER_SendHeaderDispInfoNotify and rename it to
HEADER_PrepareCallbackItems. The new HEADER_FreeCallbackItems frees
the buffers allocated by it. GetItemT and DrawItem calls these
functions.
2006-05-15 14:46:11 +02:00
Mikołaj Zalewski 96190f77b9 comctl32: header: Mark the callback items in a mask.
Mark the callback items in the callbackMask HEADER_ITEM field. The
pszText for callback texts is now NULL what simplifies some
checks. Checks for lpItem->pszText==emptyString are also not needed as
emptyString is not stored in lpItem but used as a parameter to
Str_SetPtr (I haven't noticed it).
2006-05-15 14:45:24 +02:00
Mikołaj Zalewski 25d66de358 comctl32 header: Free the old string also when the new one is LPSTR_TEXTCALLBACK. 2006-05-15 14:44:22 +02:00
Mikołaj Zalewski 16fefcd6d9 comctl32: header: Don't modify the user supplied HDITEM during Set/InsertItem. 2006-05-15 14:43:48 +02:00
Mikołaj Zalewski e3467de964 comctl32: header: Move common code from SetItemT/InsertItemT into a new function. 2006-05-15 14:41:01 +02:00
Mikołaj Zalewski 15e71a0a86 comctl32: header: Don't send HDN_GETDISPINFO during HDM_SET/INSERTITEM. 2006-05-15 14:40:27 +02:00
Mikołaj Zalewski 9865869902 comctl32: header: Don't check lpItem for NULL in GetItemT. 2006-05-15 14:40:08 +02:00
Mikołaj Zalewski b82156586e comctl32: header: Avoid freeing invalid pointers. 2006-04-20 11:34:13 +02:00
Mikołaj Zalewski 50d8c80fda comctl32: header: Send correct notify after HDM_SETITEM.
The HDN_ITEMCHANGING notify should have the new data instead of the
old one.  Both HDN_ITEMCHANGING and HDN_ITEMCHANGED now have the text
field if it changed.
2006-04-19 19:25:09 +02:00
Mikołaj Zalewski a49da0b719 comctl32: header: Remove the unused bUnicode. 2006-04-18 21:16:54 +02:00
Mikołaj Zalewski 7a7f80e9d1 comctl32: header: Correct WM_[GS]ETUNICODEFORMAT. 2006-04-18 21:16:33 +02:00
Mikołaj Zalewski 84c3189445 comctl32: Send Unicode notifications if required in header control. 2006-04-18 11:16:44 +02:00
Mikołaj Zalewski c63f5f095a comctl32: Fix listview column resize.
Fix the HDS_FULLDRAG headers notifications, invalidate such a control
after a mouse move.
2006-04-12 19:51:44 +02:00
Phil Krylov 1b9fc2a170 comctl32: Fix emitting of NM_CUSTOMDRAW header notifications.
Emit NM_CUSTOMDRAW header notifications for all headers, not only
ownerdrawn. Allow to change item text and background colors in an
application's NM_CUSTOMDRAW handler.
2006-01-10 19:58:24 +01:00
Vitaliy Margolen def2bb6798 Return false if index is out of bounds in GetItemT. 2005-11-17 11:06:18 +00:00
Raphael Junqueira e3d53b4722 Implement implement header callback support (HDN_GETDISPINFO notification):
- better factorisation
- unicode fixes
2005-11-15 16:54:41 +00:00
Michael Kaufmann e9310da57b Handle WM_PRINTCLIENT.
Don't use SelectClipRgn in WM_PRINTCLIENT.
2005-11-08 12:52:35 +00:00
Vitaliy Margolen c258430643 Unify HEADER_GetItem[A/W] into one function. 2005-10-29 11:08:20 +00:00
Vitaliy Margolen 89a4918218 Unify HEADER_InsertItem[A/W] into one function. 2005-10-28 10:40:27 +00:00
Vitaliy Margolen 05905cc526 Unify HEADER_SetItem[A/W] into one function. 2005-10-27 10:19:29 +00:00
Ge van Geldorp c00ded589a Do some bounds checking on iOrder. 2005-09-18 12:29:35 +00:00
Frank Richter 9e57091ffa Fix warnings in 64bit. 2005-08-30 10:07:17 +00:00
Phil Krylov 682dd707c8 Improved header control performance by maintaining an internal order
array.
2005-08-29 12:17:42 +00:00
Phil Krylov 030dbe2d98 Draw header control items only within the header client area. 2005-08-25 19:18:14 +00:00
Frank Richter 07f8690718 Add hottracking support for the header control. 2005-08-03 11:45:19 +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
Filip Navara 52cf1851b8 Use ReleaseDC instead of DeleteDC on DC handle. 2005-07-26 18:25:46 +00:00
Frank Richter 564872cd81 Add theming support for header controls. 2005-07-25 11:09:09 +00:00
Vitaliy Margolen 4f403edd03 Send CDDS_ITEMPOSTERASE | CDDS_PREPAINT notify. 2005-06-30 18:11:19 +00:00
Felix Nawothnig e9e6f13996 Rewrote item layouting - new code fixes bitmap/image position for
non-left-aligned text, prevents jumping when resizing non-left-aligned
text, implements clipping for images and correctly aligns bitmaps when
an image is already there.
2005-05-14 11:03:17 +00:00
Francois Gouget 93416cdaf7 Assorted spelling fixes. 2005-03-23 13:15:18 +00:00