-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update CsWin32 to 0.3.287 and remove .NET Framework IComIID workarounds #14639
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1401,7 +1401,7 @@ private static void DrawFlatCheckBox( | |
| { | ||
| g2.Clear(Color.Transparent); | ||
| using DeviceContextHdcScope dc = new(g2, applyGraphicsState: false); | ||
| PInvoke.DrawFrameControl(dc, ref rcCheck, DFC_TYPE.DFC_MENU, DFCS_STATE.DFCS_MENUCHECK); | ||
| PInvoke.DrawFrameControl(dc, ref rcCheck, (uint)DFC_TYPE.DFC_MENU, (uint)DFCS_STATE.DFCS_MENUCHECK); | ||
| } | ||
|
|
||
| bitmap.MakeTransparent(); | ||
|
|
@@ -1473,7 +1473,7 @@ private static void DrawFrameControl( | |
| using (DeviceContextHdcScope hdc = new(g2, applyGraphicsState: false)) | ||
| { | ||
| // Get Win32 dc with Graphics properties applied to it. | ||
| PInvoke.DrawFrameControl(hdc, ref rcFrame, kind, state); | ||
| PInvoke.DrawFrameControl(hdc, ref rcFrame, (uint)kind, (uint)state); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI if DrawFrameControl only takes DFC_TYPE / DFC_STATE for these parameters, that type improvement (uint => DFC_TYPE) can be done in win32metadata. Feel free to file an issue on win32metadata to recommend that. |
||
| } | ||
|
|
||
| if (foreColor == Color.Empty || backColor == Color.Empty) | ||
|
|
||
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.
Wait, did that CLSCompliant change now cause us to trigger a CS3019 on callers? Or is this only going to happen when you make the projection public ?
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.
This happens when internal, not public. I could suppress this error as well in the generated code if you like.
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.
Yes, please do that. I approved it because I assumed the attribute wouldn't matter to folks who don't care about CLSCompliant. I don't want noise for people. None of my code cares about CLS.
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.
I'll create a PR that hits all of the corners of this.