Mike McCormack : winefile: Fix some gcc 4.1 warnings caused by commctrl. h macros.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 21 04:53:15 CST 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Tue Mar 21 10:58:23 2006 +0900

winefile: Fix some gcc 4.1 warnings caused by commctrl.h macros.

---

 programs/winefile/winefile.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 7045bd4..745df4a 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -2595,7 +2595,7 @@ static void resize_tree(ChildWnd* child,
 		hdl.prc   = &rt;
 		hdl.pwpos = &wp;
 
-		Header_Layout(child->left.hwndHeader, &hdl);
+		SendMessage(child->left.hwndHeader, HDM_LAYOUT, 0, (LPARAM)&hdl);
 
 		DeferWindowPos(hdwp, child->left.hwndHeader, wp.hwndInsertAfter,
 						wp.x-1, wp.y, child->split_pos-SPLIT_WIDTH/2+1, wp.cy, wp.flags);
@@ -2631,7 +2631,7 @@ static HWND create_header(HWND parent, P
 		hdi.pszText = g_pos_names[idx];
 		hdi.fmt = HDF_STRING | g_pos_align[idx];
 		hdi.cxy = pane->widths[idx];
-		Header_InsertItem(hwnd, idx, &hdi);
+		SendMessage(hwnd, HDM_INSERTITEM, idx, (LPARAM) &hdi);
 	}
 
 	return hwnd;
@@ -3589,18 +3589,18 @@ static void set_header(Pane* pane)
 
 	for(; x+pane->widths[i]<scroll_pos && i<COLUMNS; i++) {
 		x += pane->widths[i];
-		Header_SetItem(pane->hwndHeader, i, &item);
+		SendMessage(pane->hwndHeader, HDM_SETITEM, i, (LPARAM) &item);
 	}
 
 	if (i < COLUMNS) {
 		x += pane->widths[i];
 		item.cxy = x - scroll_pos;
-		Header_SetItem(pane->hwndHeader, i++, &item);
+		SendMessage(pane->hwndHeader, HDM_SETITEM, i++, (LPARAM) &item);
 
 		for(; i<COLUMNS; i++) {
 			item.cxy = pane->widths[i];
 			x += pane->widths[i];
-			Header_SetItem(pane->hwndHeader, i, &item);
+			SendMessage(pane->hwndHeader, HDM_SETITEM, i, (LPARAM) &item);
 		}
 	}
 }
@@ -3619,7 +3619,7 @@ static LRESULT pane_notify(Pane* pane, N
 			GetClientRect(pane->hwnd, &clnt);
 
 			/* move immediate to simulate HDS_FULLDRAG (for now [04/2000] not really needed with WINELIB) */
-			Header_SetItem(pane->hwndHeader, idx, phdn->pitem);
+			SendMessage(pane->hwndHeader, HDM_SETITEM, idx, (LPARAM) phdn->pitem);
 
 			pane->widths[idx] += dx;
 
@@ -3668,7 +3668,7 @@ static LRESULT pane_notify(Pane* pane, N
 			item.mask = HDI_WIDTH;
 			item.cxy = pane->widths[phdn->iItem];
 
-			Header_SetItem(pane->hwndHeader, phdn->iItem, &item);
+			SendMessage(pane->hwndHeader, HDM_SETITEM, phdn->iItem, (LPARAM) &item);
 			InvalidateRect(pane->hwnd, 0, TRUE);
 			break;}
 	}




More information about the wine-cvs mailing list