Handle system messages?


#1

Hi,

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

Thanks, bye…


#2

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.


#3

Thank you for quick reply.

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

Bye