How to create a Transparent Window

  • Thread starter Thread starter Sebastien Girard
  • Start date Start date
S

Sebastien Girard

Hello,

I am using the IE WebBrowser (shdocvw.dll) inside my form and use it to
display an HTML background in my form. I also want to capture mouse events
that occur on the browser (Mouse Down). To do so, my class implements
IMessageFilter to pre filter messages and do special stuff on Mouse Down
events on the browser. My problem lies in the fact that I can't get the
Handle of the browser, therefore I can't tell whether the mouse events
occurred in the browser window or anywhere else...

Since I can't find any answer on how to get the Handle of the WebBrowser
Control I was thinking of creating a dummy/invisible window over the browser
that would capture mouse events but would not hide the Browser...

If you have any idea on getting the Handle of the WebBrowser Control or on
How to create a transparent Window over my Browser, please let me know.

Thanks
 
OK thanks for the head's up, I won't go in that direction...

Do you have any suggestion has to how I can solve my problem?
 
Back
Top