From 8c42ac319a5de2a9227b2c80e9c1947a865ccf0d Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 29 Jun 2011 19:12:51 +0200 Subject: [PATCH] comctl32: Fixed tab elements recognition. --- dlls/comctl32/tab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index e4a7adcafb1..c2f2d25d1db 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)