Skip to content

Commit

Permalink
Merge pull request #1 from pcblues/Mods-for-#12042
Browse files Browse the repository at this point in the history
Pull request for Issue dotnet#12042
  • Loading branch information
pcblues authored Dec 21, 2024
2 parents 084bbeb + db63d99 commit 6513a3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public partial class ListView : Control
private View _viewStyle = View.LargeIcon;
private string? _toolTipCaption = string.Empty;

// To hold created dark mode brush for deletion
private HBRUSH _hBrush;
private HBRUSH _hBrush; // To hold created dark mode brush for deletion

private const int LISTVIEWSTATE_ownerDraw = 0x00000001;
private const int LISTVIEWSTATE_allowColumnReorder = 0x00000002;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public partial class TreeView : Control
private bool _hoveredAlready;
private bool _rightToLeftLayout;

private HBRUSH _hBrush; // To hold created dark mode brush for deletion

private nint _mouseDownNode = 0; // ensures we fire nodeClick on the correct node

private const int TREEVIEWSTATE_hideSelection = 0x00000001;
Expand Down Expand Up @@ -3281,7 +3283,8 @@ protected override unsafe void WndProc(ref Message m)
case PInvokeCore.WM_CTLCOLOREDIT:
// Default handling of edit label colors
m.ResultInternal = (LRESULT)0;
#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.

#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.
if (Application.IsDarkModeEnabled)
{
// Make background of dark mode edit labels the correct color
Expand Down

0 comments on commit 6513a3d

Please sign in to comment.