简体   繁体   中英

A transparent window that ignores mouse events with wxWidgets or with any other C++ cross-platform library

I would like to know if it is possible to create a transparent window that ignores mouse events. My goal is to create a "glass pane" and put it on another window. Mouse events should be received from the covered window. This example does it, but I would like to use a C++ library like wxWidgets or Qt. I already tried to create a transparent window with those libraries but without success. Has anybody tried to create a window with these features? I'll appreciate any help.

You can ignore mouse events - but it's upto the OS to decide which application to send the mouse event to and it's unlikely to propogate it to another app that is underneath your app.

Unless your operating system has a specific option to do this then other than some sort of hook in the graphics driver so that the OS doesn't know your window is there I can't see an obvious way

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM