I'm working on a C# application with two Windows forms. Both forms are full screen and one form sits on top of the other form as a transparent overlay. The bottom form contains a web browser (also full screen). I'm tracking touch input on the transparent overlay form in order to capture gestures and draw buttons and other controls on the screen. What I need to do is to send all the windows messages that the overlay form gets in its WndProc function to the form below (or the web browser control in the form since that's basically all the lower form is used to contain).
Basically I just need to deal with the gestures on the overlay, all the mouse messages need to still transfer to the web browser to provide certain functionality.
I've tried the naive method of just calling the lower form's WndProc method given the message from the overlay. (And similarly I've tried passing it further to the WndProc of the browser control window). Neither of these methods works. I've also tried simply swapping the HWnd parameter of the Message object to be the handle of the lower form/browser while attempting this and that has also not worked.
So, would anyone be able to think of more methods to try, or possibly the correct method of passing windows messages between forms?
Thanks, Alex