Skip to content

Commit c8babcd

Browse files
committed
Adjust column header totals font size
1 parent 351c5fb commit c8babcd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phlib/treenew.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6103,7 +6103,7 @@ VOID PhTnpInitializeTooltips(
61036103

61046104
if (Context->HeaderCustomDraw)
61056105
{
6106-
Context->HeaderHotColumn = ULONG_MAX;
6106+
Context->HeaderHotColumn = -1;
61076107
Context->HeaderThemeHandle = OpenThemeData(Context->HeaderHandle, VSCLASS_HEADER);
61086108
}
61096109

@@ -6558,7 +6558,7 @@ LRESULT CALLBACK PhTnpHeaderHookWndProc(
65586558

65596559
if (GetObject(fontHandle, sizeof(LOGFONT), &logFont))
65606560
{
6561-
logFont.lfHeight -= PhMultiplyDivideSigned(3, PhGlobalDpi, 96);
6561+
logFont.lfHeight -= PhMultiplyDivideSigned(2, PhGlobalDpi, 96);
65626562
context->HeaderBoldFontHandle = CreateFontIndirect(&logFont);
65636563
//context->HeaderBoldFontHandle = PhDuplicateFontWithNewHeight(fontHandle, -14);
65646564
}
@@ -6699,7 +6699,7 @@ LRESULT CALLBACK PhTnpHeaderHookWndProc(
66996699

67006700
result = CallWindowProc(oldWndProc, hwnd, uMsg, wParam, lParam);
67016701
context->HeaderMouseActive = FALSE;
6702-
context->HeaderHotColumn = ULONG_MAX;
6702+
context->HeaderHotColumn = -1;
67036703

67046704
if (GetCapture() != hwnd)
67056705
{
@@ -6782,7 +6782,7 @@ LRESULT CALLBACK PhTnpHeaderHookWndProc(
67826782
if (!(column = (PPH_TREENEW_COLUMN)headerItem.lParam))
67836783
continue;
67846784

6785-
if (context->HeaderHotColumn != ULONG_MAX && context->HeaderHotColumn == column->Id)
6785+
if (context->HeaderHotColumn != -1 && context->HeaderHotColumn == column->Id)
67866786
{
67876787
if (context->ThemeSupport)
67886788
{

0 commit comments

Comments
 (0)