Nikolay Sivov : comctl32/listview: Update focus rectangle properly.
Alexandre Julliard
julliard at winehq.org
Thu May 21 09:35:54 CDT 2009
Module: wine
Branch: master
Commit: 1394c6eee3150c2ecf588a25eed6d329adc91950
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1394c6eee3150c2ecf588a25eed6d329adc91950
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Thu May 21 15:55:47 2009 +0400
comctl32/listview: Update focus rectangle properly.
---
dlls/comctl32/listview.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 6e3509a..8ddaf3d 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -3974,7 +3974,8 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
if (nmlvcd.clrTextBk != CLR_NONE)
ExtTextOutW(hdc, rcSelect.left, rcSelect.top, ETO_OPAQUE, &rcSelect, 0, 0, 0);
- if(lprcFocus) *lprcFocus = rcSelect;
+ /* store new focus rectangle */
+ if (infoPtr->nFocusedItem == nItem) infoPtr->rcFocus = rcSelect;
}
/* figure out the text drawing flags */
More information about the wine-cvs
mailing list