Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2068,7 +2068,16 @@ protected override unsafe void WndProc(ref Message m)
case MessageId.WM_REFLECT_MEASUREITEM:
// We use TCM_SETITEMSIZE instead
break;
case PInvokeCore.WM_PARENTNOTIFY:
// Apply dark mode to spinner (updown) button when it's created
if (m.WParamInternal.LOWORD == PInvokeCore.WM_CREATE && Application.IsDarkModeEnabled)
{
HWND childHandle = (HWND)m.LParamInternal;
PInvoke.SetWindowTheme(childHandle, $"{DarkModeIdentifier}_{ExplorerThemeIdentifier}", null);
}

base.WndProc(ref m);
break;
case PInvokeCore.WM_NOTIFY:
case MessageId.WM_REFLECT_NOTIFY:
NMHDR* nmhdr = (NMHDR*)(nint)m.LParamInternal;
Expand Down