There are window messages where '0' means the message was handled, where you treat '0' as not handled and call DefSubclassProc(). For example if you do this with 'WM_DPICHANGED' you can crash the application.
A better way would be to introduce a boolean property Handled on WindowMessageEventArgs and only return the result when this is set to true.
There are window messages where '0' means the message was handled, where you treat '0' as not handled and call DefSubclassProc(). For example if you do this with 'WM_DPICHANGED' you can crash the application.
A better way would be to introduce a boolean property
Handled
onWindowMessageEventArgs
and only return the result when this is set to true.