Skip to content

Commit

Permalink
Issue 2257 – New tab icon is drawn incorrect on Explorer interface wi…
Browse files Browse the repository at this point in the history
…th Show selective text labels turned off

https://winscp.net/tracker/2257

Source commit: f94dcc775f1df3b742b9aebec8c9b744caaef051
  • Loading branch information
martinprikryl committed Feb 3, 2024
1 parent 4bae76d commit a76f413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/components/ThemePageControl.cpp
Expand Up @@ -382,6 +382,7 @@ void TThemePageControl::DrawDropDown(HDC DC, int Radius, int X, int Y, COLORREF
// draw tab item context: possible icon and text
void __fastcall TThemePageControl::DrawTabItem(HDC DC, int Item, TRect Rect, int State, bool Shadowed)
{
TRect OrigRect = Rect;
ItemContentsRect(Item, Rect);

UnicodeString Text = Pages[Item]->Caption;
Expand All @@ -396,7 +397,7 @@ void __fastcall TThemePageControl::DrawTabItem(HDC DC, int Item, TRect Rect, int
}
else
{
Left = (Rect.Right - Images->Width - Rect.Left) / 2;
Left = OrigRect.Left + (OrigRect.Right - Images->Width - OrigRect.Left) / 2;
}
int Y = ((Rect.Top + Rect.Bottom - Images->Height) / 2) - 1 + (Selected ? 0 : -2);
std::unique_ptr<TCanvas> Canvas(new TCanvas());
Expand Down

0 comments on commit a76f413

Please sign in to comment.