Skip to content

Conversation

@OJacot-Descombes
Copy link

Hello Yves,

I changed SystemMenu to use a Message Filter to intercept WM_SYSCOMMAND. Caller must not override WndProc anymore.

Background: I have a component sitting on the form that adds system menu entries instead of the form itself, therefore overriding WndProc was not possible.

I found SystemMenu here: https://stackoverflow.com/a/29042436/880990

Sorry, my VS reformatted the code a bit (brace placement). Also, the license files were comitted. I don't know why, I didn't edit them.

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.

1 participant