Skip to content

Commit 6513a3d

Browse files
authored
Merge pull request #1 from pcblues/Mods-for-#12042
Pull request for Issue dotnet#12042
2 parents 084bbeb + db63d99 commit 6513a3d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/System.Windows.Forms/src/System/Windows/Forms/Controls/ListView/ListView.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public partial class ListView : Control
5656
private View _viewStyle = View.LargeIcon;
5757
private string? _toolTipCaption = string.Empty;
5858

59-
// To hold created dark mode brush for deletion
60-
private HBRUSH _hBrush;
59+
private HBRUSH _hBrush; // To hold created dark mode brush for deletion
6160

6261
private const int LISTVIEWSTATE_ownerDraw = 0x00000001;
6362
private const int LISTVIEWSTATE_allowColumnReorder = 0x00000002;

src/System.Windows.Forms/src/System/Windows/Forms/Controls/TreeView/TreeView.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public partial class TreeView : Control
6060
private bool _hoveredAlready;
6161
private bool _rightToLeftLayout;
6262

63+
private HBRUSH _hBrush; // To hold created dark mode brush for deletion
64+
6365
private nint _mouseDownNode = 0; // ensures we fire nodeClick on the correct node
6466

6567
private const int TREEVIEWSTATE_hideSelection = 0x00000001;
@@ -3281,7 +3283,8 @@ protected override unsafe void WndProc(ref Message m)
32813283
case PInvokeCore.WM_CTLCOLOREDIT:
32823284
// Default handling of edit label colors
32833285
m.ResultInternal = (LRESULT)0;
3284-
#pragma warning disable WFO5001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
3286+
3287+
#pragma warning disable WFO5001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
32853288
if (Application.IsDarkModeEnabled)
32863289
{
32873290
// Make background of dark mode edit labels the correct color

0 commit comments

Comments
 (0)