-
Notifications
You must be signed in to change notification settings - Fork 990
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
[WIP] Cleanup HWND related interop #1508
Conversation
15323f9
to
5a2877c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1508 +/- ##
===================================================
+ Coverage 25.94161% 25.98063% +0.03902%
===================================================
Files 807 836 +29
Lines 267786 267992 +206
Branches 37960 37953 -7
===================================================
+ Hits 69468 69626 +158
- Misses 193385 193436 +51
+ Partials 4933 4930 -3
|
Thanks @hughbe for this PR. We need to thoroughly validate these changes to make sure we are not regressing anything. Change pattern is straight but number of changes are huge. For core 3.0, We do not have app.config support for HDPI and validation of these changes need extra efforts. We can take this PR for 3.1. |
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.
Completed review of the Interop namespace
Further review pending
src/Common/src/Interop/User32/Interop.AreDpiAwarenessContextsEqual.cs
Outdated
Show resolved
Hide resolved
src/Common/src/Interop/User32/Interop.GetThreadDpiAwarenessContext.cs
Outdated
Show resolved
Hide resolved
src/Common/src/Interop/User32/Interop.GetThreadDpiAwarenessContext.cs
Outdated
Show resolved
Hide resolved
src/Common/src/Interop/User32/Interop.SetThreadDpiAwarenessContext.cs
Outdated
Show resolved
Hide resolved
src/Common/src/Interop/User32/Interop.SetThreadDpiAwarenessContext.cs
Outdated
Show resolved
Hide resolved
src/Common/src/Interop/User32/Interop.SetThreadDpiAwarenessContext.cs
Outdated
Show resolved
Hide resolved
42f4a1f
to
873cbda
Compare
...ystem.Windows.Forms.Design/tests/UnitTests/System/ComponentModel/Design/DesignerHostTests.cs
Outdated
Show resolved
Hide resolved
873cbda
to
e2b1320
Compare
e2b1320
to
87dbcd5
Compare
87dbcd5
to
d001919
Compare
@@ -74,8 +74,8 @@ public class CheckedListBox : ListBox | |||
|
|||
static CheckedListBox() | |||
{ | |||
LBC_GETCHECKSTATE = SafeNativeMethods.RegisterWindowMessage("LBC_GETCHECKSTATE"); | |||
LBC_SETCHECKSTATE = SafeNativeMethods.RegisterWindowMessage("LBC_SETCHECKSTATE"); | |||
LBC_GETCHECKSTATE = Interop.User32.RegisterWindowMessageW("LBC_GETCHECKSTATE"); |
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.
@JeremyKuhne previously we had safe and unsafe native methods segregated, with all the refactoring and cleanup work (incl. this one) we're loosing this distinction.
Is this something we need to be concerned with?
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.
Is this something we need to be concerned with?
No. It isn't a pattern that makes sense with CAS gone. https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1060-move-p-invokes-to-nativemethods-class?view=vs-2019
3b2443b
to
8a92483
Compare
8a92483
to
6c2e07f
Compare
6c2e07f
to
4973b41
Compare
Closing this temporarily. |
Microsoft Reviewers: Open in CodeFlow