Piotr Caban : comctl32: Fixed tab elements recognition.
Alexandre Julliard
julliard at winehq.org
Wed Jun 29 15:47:44 CDT 2011
Module: wine
Branch: master
Commit: 8c42ac319a5de2a9227b2c80e9c1947a865ccf0d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8c42ac319a5de2a9227b2c80e9c1947a865ccf0d
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Jun 29 19:12:51 2011 +0200
comctl32: Fixed tab elements recognition.
---
dlls/comctl32/tab.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index e4a7adc..c2f2d25 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -2118,9 +2118,10 @@ static void TAB_DrawItem(const TAB_INFO *infoPtr, HDC hdc, INT iItem)
partIndex += 4;
/* The part also differs on the position of a tab on a line.
* "Visually" determining the position works well enough. */
+ GetClientRect(infoPtr->hwnd, &r1);
if(selectedRect.left == 0)
partIndex += 1;
- if(selectedRect.right == clRight)
+ if(selectedRect.right == r1.right)
partIndex += 2;
if (iItem == infoPtr->iSelected)
More information about the wine-cvs
mailing list