Skip to content

Commit

Permalink
Apply DM on edit control created by listview when renaming item
Browse files Browse the repository at this point in the history
  • Loading branch information
ozone10 committed Jan 18, 2025
1 parent b669b2a commit 18d8f72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DarkMode/DarkModeSubclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2213,6 +2213,16 @@ namespace DarkMode
break;
}

// For edit control, which is created when renaming/editing items
case WM_CTLCOLOREDIT:
{
if (DarkMode::isEnabled())
{
return DarkMode::onCtlColorSofter(reinterpret_cast<HDC>(wParam));
}
break;
}

case WM_NOTIFY:
{
switch (reinterpret_cast<LPNMHDR>(lParam)->code)
Expand Down

0 comments on commit 18d8f72

Please sign in to comment.