Module: wine
Branch: master
Commit: 5564266a8ac1e96ba5563b7df57fced0d4f65c69
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5564266a8ac1e96ba5563b7…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl>
Date: Mon Sep 18 11:59:24 2006 +0200
comctl32: header: Update the header comment.
---
dlls/comctl32/header.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index c0938a9..1d4f1fd 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -4,6 +4,7 @@
* Copyright 1998 Eric Kohl
* Copyright 2000 Eric Kohl for CodeWeavers
* Copyright 2003 Maxime Bellenge
+ * Copyright 2006 Mikolaj Zalewski
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -20,15 +21,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
* TODO:
- * - Imagelist support (partially).
- * - Callback items (under construction).
- * - Hottrack support (partially).
- * - Custom draw support (including Notifications).
- * - Drag and Drop support (including Notifications).
- * - New messages.
- * - Use notification format
- * - Correct the order maintenance code to preserve valid order
- *
+ * - Imagelist support (completed?)
+ * - Hottrack support (completed?)
+ * - Custom draw support (completed?)
+ * - Filters support (HDS_FILTER, HDI_FILTER, HDM_*FILTER*, HDN_*FILTER*)
+ * - New Windows Vista features
*/
#include <stdarg.h>
Module: wine
Branch: master
Commit: e4f36895131dd3a2c1565275e8119eea4d3aea86
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=e4f36895131dd3a2c156527…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl>
Date: Mon Sep 18 11:58:02 2006 +0200
comctl32: header: Remove the nOldWidth.
---
dlls/comctl32/header.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index c52a054..c0938a9 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -84,7 +84,6 @@ typedef struct
INT iMoveItem; /* index of tracked item. (Tracking mode) */
INT xTrackOffset; /* distance between the right side of the tracked item and the cursor */
INT xOldTrack; /* track offset (see above) after the last WM_MOUSEMOVE */
- INT nOldWidth; /* width of a sizing item after the last WM_MOUSEMOVE */
INT iHotItem; /* index of hot item (cursor is over this item) */
INT iHotDivider; /* index of the hot divider (used while dragging an item or by HDM_SETHOTDIVIDER) */
INT iMargin; /* width of the margin that surrounds a bitmap */
@@ -1581,7 +1580,6 @@ HEADER_LButtonDown (HWND hwnd, WPARAM wP
infoPtr->bCaptured = TRUE;
infoPtr->bTracking = TRUE;
infoPtr->iMoveItem = nItem;
- infoPtr->nOldWidth = iCurrWidth;
infoPtr->xTrackOffset = infoPtr->items[nItem].rect.right - pt.x;
if (!(dwStyle & HDS_FULLDRAG)) {
@@ -1674,11 +1672,8 @@ HEADER_LButtonUp (HWND hwnd, WPARAM wPar
ReleaseDC (hwnd, hdc);
}
- if (HEADER_SendNotifyWithIntFieldT(hwnd, HDN_ITEMCHANGINGW, infoPtr->iMoveItem, HDI_WIDTH, iNewWidth))
- {
- infoPtr->items[infoPtr->iMoveItem].cxy = infoPtr->nOldWidth;
- }
- else {
+ if (!HEADER_SendNotifyWithIntFieldT(hwnd, HDN_ITEMCHANGINGW, infoPtr->iMoveItem, HDI_WIDTH, iNewWidth))
+ {
infoPtr->items[infoPtr->iMoveItem].cxy = iNewWidth;
HEADER_SendNotifyWithIntFieldT(hwnd, HDN_ITEMCHANGEDW, infoPtr->iMoveItem, HDI_WIDTH, iNewWidth);
}
Module: wine
Branch: master
Commit: bd7f9321a0af9c466bf6343bb1b7b7dced96c266
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=bd7f9321a0af9c466bf6343…
Author: Mikołaj Zalewski <mikolaj(a)zalewski.pl>
Date: Mon Sep 18 11:55:42 2006 +0200
comctl32: header: Send new values in notifies during resize and drag-drop instead of the old ones.
This also fixes the notify format of HDN_ITEMCLICKED(A/W).
---
dlls/comctl32/header.c | 124 +++++++++++++++++++++++-------------------------
1 files changed, 60 insertions(+), 64 deletions(-)
Diff: http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=bd7f9321a0af9c466bf…