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

[Feature Request] Custom WndProc #1790

Closed
hamarb123 opened this issue Sep 20, 2020 · 2 comments · Fixed by #1794
Closed

[Feature Request] Custom WndProc #1790

hamarb123 opened this issue Sep 20, 2020 · 2 comments · Fixed by #1794
Milestone

Comments

@hamarb123
Copy link
Contributor

Hello, I'd like to have custom WndProc handling on the WinForms version of my application. I've looked through your code and noticed that there is no way to do this currently (without reimplementing a large amount of code that you guys maintain). What I suggest is having a field in EtoFormBase with the type of the delegate implemented as such delegate void WndProcDelegate(ref swf.Message m);. This delegate is then called at the end of your WndProc method (if not null) and it is the responsibility of the one who set the field to ensure that it doesn't crash or anything, but of course any method of having custom WndProc handling would be fine.

@hamarb123
Copy link
Contributor Author

I've implemented this myself, with the permission of an owner, I'll open a PR.

@cwensley
Copy link
Member

Hey @hamarb123,

Yes, something like this would certainly be welcome. Please PR away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants