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
Add CreateICW to Interop Gdi32 #2881
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2881 +/- ##
===================================================
- Coverage 59.83718% 59.82885% -0.00833%
===================================================
Files 1241 1241
Lines 431775 431775
Branches 38811 38811
===================================================
- Hits 258362 258326 -36
- Misses 168059 168098 +39
+ Partials 5354 5351 -3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
But I propose we take it a bit further by reducing unnecessary allocations and interop marshaling overheads by using char*
instead of string
s.
It is a good time to add unit tests to very the behaviour before and after the change as well.
I thought that when we just pass parameters it is OK to use string? Also, looking at the code coverage seems like the RightMargin property lines are already covered? |
TL;DR: it works, but it is not efficient.
There is a single test that asserts |
In RichTextBoxTests I see many calls to RightMargin, not one. Am I missing something here? |
You're right! I was looking at an outdated branch (I have several working repos). |
Proposed changes
Microsoft Reviewers: Open in CodeFlow