I can reproduce it (under Windows 11 running in Hyper-V) if I use dark mode.A (stupid!) solution would be to invalidate the whole edit control in CEditPropertyValueDlg::OnEnChangePropvalue(). Surely there must be a better solution..?[[[CRect rect;
CWnd* pWnd = GetDlgItem(IDC_PROPVALUE);
pWnd->GetWindowRect(&rect);
ScreenToClient(&rect);
InvalidateRect(&rect, TRUE);]]]
I can reproduce it (under Windows 11 running in Hyper-V) if I use dark mode.A (stupid!) solution would be to invalidate the whole edit control in CEditPropertyValueDlg::OnEnChangePropvalue(). Surely there must be a better solution..?[[[CRect rect;
CWnd* pWnd = GetDlgItem(IDC_PROPVALUE);
pWnd->GetWindowRect(&rect);
ScreenToClient(&rect);
InvalidateRect(&rect, TRUE);]]]why not just useGetDlgItem(IDC_PROPVALUE)->Invalidate();?
maybe there's something we could do differently in CTheme::MainSubclassProc ? I can't reproduce this here, not even in a VM. So I won't be of much help :(
I've committed a possible fix. Not sure if it does fix the problem or whether it could cause other problems instead. But it's a good bet I think.