@@ -1590,15 +1590,22 @@ INT_PTR CALLBACK PhpOptionsGeneralDlgProc(
1590
1590
PhMoveReference (& NewFontSelection , PhBufferToHexString ((PUCHAR )& font , sizeof (LOGFONT )));
1591
1591
1592
1592
// Update the button's font.
1593
-
1594
- if (CurrentFontInstance )
1595
- DeleteFont (CurrentFontInstance );
1596
-
1593
+ if (CurrentFontInstance ) DeleteFont (CurrentFontInstance );
1597
1594
CurrentFontInstance = CreateFontIndirect (& font );
1598
1595
1599
1596
SetWindowFont (OptionsTreeControl , CurrentFontInstance , TRUE); // HACK
1600
1597
SetWindowFont (GetDlgItem (hwndDlg , IDC_SETTINGS ), CurrentFontInstance , TRUE);
1601
1598
SetWindowFont (GetDlgItem (hwndDlg , IDC_FONT ), CurrentFontInstance , TRUE);
1599
+
1600
+ // Re-add the listview items for the new font (dmex)
1601
+ GeneralListViewStateInitializing = TRUE;
1602
+ HWND listviewHandle = GetDlgItem (hwndDlg , IDC_SETTINGS );
1603
+ ExtendedListView_SetRedraw (listviewHandle , FALSE);
1604
+ ListView_DeleteAllItems (listviewHandle );
1605
+ PhpAdvancedPageLoad (hwndDlg );
1606
+ ExtendedListView_SetRedraw (listviewHandle , TRUE);
1607
+ GeneralListViewStateInitializing = FALSE;
1608
+
1602
1609
RestartRequired = TRUE; // HACK: Fix ToolStatus plugin toolbar resize on font change
1603
1610
}
1604
1611
}
0 commit comments