Commit 8c42ac31 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

comctl32: Fixed tab elements recognition.

parent a8a213dd
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment