Skip to content
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

Resolved issue in sending WM_DESTROY msg to ActiveX controls #1

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

Sachin-NI
Copy link
Owner

Fixes dotnet#12551

Proposed changes

  • The DetachWindow method always sets IsHandleCreated to false. This causes the if condition to always be false, preventing the WM_DESTROY message from being sent to ActiveX controls. To fix this, we now store the value of IsHandleCreated in a boolean variable before calling the DetachWindow method. This was the previous behavior but got disrupted due to this change.

@Sachin-NI Sachin-NI merged commit 3a9f6b0 into main Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.Net 8 upgrade is not able send WM_DESTROY message to ActiveXControl from interop assembly
1 participant