Handle system messages?


How to handle system (Windows) event messages not handled by Juce library?

Thanks, bye…

You would have to get the platform-specific window handle (HWND) from the heavyweight ComponentPeer, then use GetWindowLong or something similar to extract the current WndProc, save that value, install your own WndProc, and pass any unhandled messages to the original WndProc.

This is just a rough sketch, your mileage may vary.

Thank you for quick reply.

For those interested take a look at MSDN and “GetWindowLongPtr()” and “SetWindowLongPtr()” functions.