Removed trailing whitespace.
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index f034c06..228f214 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -42,7 +42,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(header);
-typedef struct
+typedef struct
{
INT cxy;
HBITMAP hbm;
@@ -98,13 +98,13 @@
}
-static INT
+static INT
HEADER_OrderToIndex(HWND hwnd, WPARAM wParam)
{
HEADER_INFO *infoPtr = HEADER_GetInfoPtr (hwnd);
INT i,iorder = (INT)wParam;
-
-
+
+
if ((iorder <0) || iorder >infoPtr->uNumItem)
return iorder;
for (i=0; i<infoPtr->uNumItem; i++)
@@ -162,7 +162,7 @@
if (!infoPtr->bRectsValid)
HEADER_SetItemBounds(hwnd);
-
+
r = phdi->rect;
if (r.right - r.left == 0)
return phdi->rect.right;
@@ -329,7 +329,7 @@
}
-static void
+static void
HEADER_Refresh (HWND hwnd, HDC hdc)
{
HEADER_INFO *infoPtr = HEADER_GetInfoPtr (hwnd);
@@ -594,7 +594,7 @@
INT iItem = (INT)wParam;
TRACE("[iItem=%d]\n", iItem);
-
+
if ((iItem < 0) || (iItem >= (INT)infoPtr->uNumItem))
return FALSE;
@@ -633,7 +633,7 @@
HEADER_SetItemBounds (hwnd);
InvalidateRect(hwnd, NULL, FALSE);
-
+
return TRUE;
}
@@ -685,7 +685,7 @@
phdi->pszText, phdi->cchTextMax, NULL, NULL);
else
*phdi->pszText = 0;
- }
+ }
else
phdi->pszText = LPSTR_TEXTCALLBACKA;
}
@@ -779,7 +779,7 @@
}
-static LRESULT
+static LRESULT
HEADER_GetOrderArray(HWND hwnd, WPARAM wParam, LPARAM lParam)
{
int i;
@@ -793,7 +793,7 @@
return TRUE;
}
-static LRESULT
+static LRESULT
HEADER_SetOrderArray(HWND hwnd, WPARAM wParam, LPARAM lParam)
{
int i;
@@ -877,7 +877,7 @@
(infoPtr->uNumItem - nItem - 1) * sizeof(HEADER_ITEM));
}
}
-
+
COMCTL32_Free (oldItems);
}
@@ -924,7 +924,7 @@
}
else
lpItem->iOrder=nItem;
-
+
HEADER_SetItemBounds (hwnd);
@@ -976,7 +976,7 @@
(infoPtr->uNumItem - nItem - 1) * sizeof(HEADER_ITEM));
}
}
-
+
COMCTL32_Free (oldItems);
}
@@ -989,7 +989,7 @@
if (phdi->mask & HDI_TEXT) {
WCHAR wide_null_char = 0;
if (!phdi->pszText) /* null pointer check */
- phdi->pszText = &wide_null_char;
+ phdi->pszText = &wide_null_char;
if (phdi->pszText != LPSTR_TEXTCALLBACKW) {
len = strlenW (phdi->pszText);
lpItem->pszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
@@ -1304,7 +1304,7 @@
UINT flags;
INT nItem;
- pt.x = (INT)LOWORD(lParam);
+ pt.x = (INT)LOWORD(lParam);
pt.y = (INT)HIWORD(lParam);
HEADER_InternalHitTest (hwnd, &pt, &flags, &nItem);
@@ -1327,13 +1327,13 @@
INT nItem;
HDC hdc;
- pt.x = (INT)LOWORD(lParam);
+ pt.x = (INT)LOWORD(lParam);
pt.y = (INT)HIWORD(lParam);
HEADER_InternalHitTest (hwnd, &pt, &flags, &nItem);
if ((dwStyle & HDS_BUTTONS) && (flags == HHT_ONHEADER)) {
SetCapture (hwnd);
- infoPtr->bCaptured = TRUE;
+ infoPtr->bCaptured = TRUE;
infoPtr->bPressed = TRUE;
infoPtr->iMoveItem = nItem;
@@ -1345,11 +1345,11 @@
ReleaseDC (hwnd, hdc);
TRACE("Pressed item %d!\n", nItem);
- }
+ }
else if ((flags == HHT_ONDIVIDER) || (flags == HHT_ONDIVOPEN)) {
if (!(HEADER_SendHeaderNotify (hwnd, HDN_BEGINTRACKA, nItem,0))) {
SetCapture (hwnd);
- infoPtr->bCaptured = TRUE;
+ infoPtr->bCaptured = TRUE;
infoPtr->bTracking = TRUE;
infoPtr->iMoveItem = nItem;
infoPtr->nOldWidth = infoPtr->items[nItem].cxy;
@@ -1412,7 +1412,7 @@
infoPtr->bRectsValid = FALSE;
InvalidateRect(hwnd, NULL, FALSE);
/* FIXME: Should some WM_NOTIFY be sent */
- }
+ }
TRACE("Released item %d!\n", infoPtr->iMoveItem);
infoPtr->bPressed = FALSE;
@@ -1447,7 +1447,7 @@
HEADER_SendHeaderNotify(hwnd, HDN_ITEMCHANGINGA, infoPtr->iMoveItem, HDI_WIDTH);
HEADER_SetItemBounds (hwnd);
InvalidateRect(hwnd, NULL, FALSE);
- /*
+ /*
* }
*/
}
@@ -1536,7 +1536,7 @@
infoPtr->xOldTrack = pt.x + infoPtr->xTrackOffset;
if (infoPtr->xOldTrack < infoPtr->items[infoPtr->iMoveItem].rect.left)
infoPtr->xOldTrack = infoPtr->items[infoPtr->iMoveItem].rect.left;
- infoPtr->items[infoPtr->iMoveItem].cxy =
+ infoPtr->items[infoPtr->iMoveItem].cxy =
infoPtr->xOldTrack - infoPtr->items[infoPtr->iMoveItem].rect.left;
HEADER_DrawTrackLine (hwnd, hdc, infoPtr->xOldTrack);
ReleaseDC (hwnd, hdc);
@@ -1586,7 +1586,7 @@
/* Send a WM_CONTEXTMENU message in response to the RBUTTONUP */
SendMessageA( hwnd, WM_CONTEXTMENU, (WPARAM) hwnd, MAKELPARAM(pt.x, pt.y));
-
+
return bRet;
}
@@ -1637,7 +1637,7 @@
ReleaseDC (0, hdc);
infoPtr->bRectsValid = FALSE;
-
+
if (lParam) {
InvalidateRect(hwnd, NULL, FALSE);
}
@@ -1680,7 +1680,7 @@
case HDM_GETITEMRECT:
return HEADER_GetItemRect (hwnd, wParam, lParam);
- case HDM_GETORDERARRAY:
+ case HDM_GETORDERARRAY:
return HEADER_GetOrderArray(hwnd, wParam, lParam);
case HDM_GETUNICODEFORMAT:
@@ -1754,7 +1754,7 @@
case WM_SIZE:
return HEADER_Size (hwnd, wParam);
-
+
case WM_PAINT:
return HEADER_Paint (hwnd, wParam);
@@ -1768,7 +1768,7 @@
return HEADER_SetFont (hwnd, wParam, lParam);
default:
- if (msg >= WM_USER)
+ if (msg >= WM_USER)
ERR("unknown msg %04x wp=%04x lp=%08lx\n",
msg, wParam, lParam );
return DefWindowProcA (hwnd, msg, wParam, lParam);
@@ -1789,7 +1789,7 @@
wndClass.cbWndExtra = sizeof(HEADER_INFO *);
wndClass.hCursor = LoadCursorA (0, IDC_ARROWA);
wndClass.lpszClassName = WC_HEADERA;
-
+
RegisterClassA (&wndClass);
}