winforms
winforms copied to clipboard
Mods for #12042
Fixes #12042 - TreeNode and ListItem not displaying in dark mode during editing, even though application is set to be in dark mode.
Proposed changes
If the application is in dark mode, capture the parent's windows message to identify the start of editing, and change the colour of the brush to match the parent's window color.
Customer Impact
Correction of incorrect color selection.
Regression?
- Yes / No
Risk
I tried to limit the impact of the change to only occurring when the application is in dark mode. I'm not sure of the impact, if any, on custom ListView subitems, or custom-drawn TreeNodes.
Screenshots
Before
After
Test methodology
I used the test application provided to highlight the bug in the ticket to test the new behaviour.