Mikołaj Zalewski : winefile: Use header full drag.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Apr 14 04:13:21 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: ec328c1e70409e55321063ec8259609a5605bbad
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ec328c1e70409e55321063ec8259609a5605bbad

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Thu Apr 13 10:38:00 2006 +0200

winefile: Use header full drag.

---

 programs/winefile/winefile.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 745df4a..d2159c8 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -2618,7 +2618,7 @@ static HWND create_header(HWND parent, P
 	HD_ITEM hdi;
 	int idx;
 
-	HWND hwnd = CreateWindow(WC_HEADER, 0, WS_CHILD|WS_VISIBLE|HDS_HORZ/*TODO: |HDS_BUTTONS + sort orders*/,
+	HWND hwnd = CreateWindow(WC_HEADER, 0, WS_CHILD|WS_VISIBLE|HDS_HORZ|HDS_FULLDRAG/*TODO: |HDS_BUTTONS + sort orders*/,
 								0, 0, 0, 0, parent, (HMENU)id, Globals.hInstance, 0);
 	if (!hwnd)
 		return 0;
@@ -3608,8 +3608,7 @@ static void set_header(Pane* pane)
 static LRESULT pane_notify(Pane* pane, NMHDR* pnmh)
 {
 	switch(pnmh->code) {
-		case HDN_TRACK:
-		case HDN_ENDTRACK: {
+		case HDN_ITEMCHANGED: {
 			HD_NOTIFY* phdn = (HD_NOTIFY*) pnmh;
 			int idx = phdn->iItem;
 			int dx = phdn->pitem->cxy - pane->widths[idx];
@@ -3618,9 +3617,6 @@ static LRESULT pane_notify(Pane* pane, N
 			RECT clnt;
 			GetClientRect(pane->hwnd, &clnt);
 
-			/* move immediate to simulate HDS_FULLDRAG (for now [04/2000] not really needed with WINELIB) */
-			SendMessage(pane->hwndHeader, HDM_SETITEM, idx, (LPARAM) phdn->pitem);
-
 			pane->widths[idx] += dx;
 
 			for(i=idx; ++i<=COLUMNS; )




More information about the wine-cvs mailing list