comctl32: Fixed tab elements recognition.

This commit is contained in:
Piotr Caban 2011-06-29 19:12:51 +02:00 committed by Alexandre Julliard
parent a8a213dddc
commit 8c42ac319a
1 changed files with 2 additions and 1 deletions

View File

@ -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)