Mikołaj Zalewski : comctl32: header: Remove the unused bUnicode.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 18 14:35:16 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: a49da0b719740f48f30b69602d2bced4cb8154a0
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a49da0b719740f48f30b69602d2bced4cb8154a0
Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date: Tue Apr 18 19:45:29 2006 +0200
comctl32: header: Remove the unused bUnicode.
---
dlls/comctl32/header.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index d80441b..9f856cf 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -77,7 +77,6 @@ typedef struct
BOOL bCaptured; /* Is the mouse captured? */
BOOL bPressed; /* Is a header item pressed (down)? */
BOOL bTracking; /* Is in tracking mode? */
- BOOL bUnicode; /* Unicode flag */
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 */
@@ -170,7 +169,7 @@ HEADER_DrawItem (HWND hwnd, HDC hdc, INT
HTHEME theme = GetWindowTheme (hwnd);
NMCUSTOMDRAW nmcd;
- TRACE("DrawItem(iItem %d bHotTrack %d unicode flag %d)\n", iItem, bHotTrack, infoPtr->bUnicode);
+ TRACE("DrawItem(iItem %d bHotTrack %d unicode flag %d)\n", iItem, bHotTrack, (infoPtr->nNotifyFormat == NFR_UNICODE));
if (!infoPtr->bRectsValid)
HEADER_SetItemBounds(hwnd);
@@ -1292,7 +1291,6 @@ HEADER_Create (HWND hwnd, WPARAM wParam,
infoPtr->iMoveItem = 0;
infoPtr->himl = 0;
infoPtr->iHotItem = -1;
- infoPtr->bUnicode = IsWindowUnicode (hwnd);
infoPtr->iMargin = 3*GetSystemMetrics(SM_CXEDGE);
infoPtr->nNotifyFormat =
SendMessageW (infoPtr->hwndNotify, WM_NOTIFYFORMAT, (WPARAM)hwnd, NF_QUERY);
More information about the wine-cvs
mailing list