-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the drawing position of the Treeview control text #12638
base: main
Are you sure you want to change the base?
Update the drawing position of the Treeview control text #12638
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12638 +/- ##
===================================================
- Coverage 76.01450% 76.01356% -0.00094%
===================================================
Files 3176 3176
Lines 638840 638840
Branches 47169 47169
===================================================
- Hits 485611 485605 -6
- Misses 149718 149733 +15
+ Partials 3511 3502 -9
Flags with carried forward coverage won't be shown. Click here to find out more. |
@LeafShi1 @ricardobossan - had you tested this fix in different DPI settings? |
Tested on 225% DPI (The main screen is 225% DPI, the secondary screen is 100% DPI) |
@LeafShi1 - this might be a good issue to make conditional on an AppContext switch, we'll have to discuss it in a team meeting. |
Fixes #12601
Proposed changes
Customer Impact
Regression?
Risk
Screenshots
Before
Create a form, add a TreevView with CheckBoxes=true and DrawMode=OwnerDrawText
In OnDrawNode event only set DrawDefault=true
Show the form: checkboxes are shown corrupted on the right border
After
The checkbox of the Treeview control can be fully displayed
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow