Windows Develop Bookmark and Share   
 index > Windows Forms General > Message transparent window
 

Message transparent window

Hi all,

i wanna make a transparent or glass window that passes the windows messages to the windows behind it , ex: if the desktop lies behind my window , i wanna be able to click on the icons on it although there a window between the mouse and the desktop.

i'm waiting for your suggestions

Best regards
John Nabil.
Johnnabil06  Thursday, December 20, 2007 12:23 PM

Hi,

As far as I know, even though a window is transparent, it can still receive and process messages. The system won’t post/send the message to other window even the message window is transparent.

As a workaround, you can use GetWindow to retrieve the window below the transparent window in the Z order. And in the transparent window’s message processing function, you can dispatch the message to the window behind it.

Hope it helps!

Yan-Fei Wei  Tuesday, December 25, 2007 7:14 AM

Hi,

As far as I know, even though a window is transparent, it can still receive and process messages. The system won’t post/send the message to other window even the message window is transparent.

As a workaround, you can use GetWindow to retrieve the window below the transparent window in the Z order. And in the transparent window’s message processing function, you can dispatch the message to the window behind it.

Hope it helps!

Yan-Fei Wei  Tuesday, December 25, 2007 7:14 AM

Good noon! I think yoy may use PWF for that purpose. Or you you develop Windows Forms Application you may use Integration host, where be located your UserControl with semi-transparent control writed on the wpf
Nikolay Podkolzin  Tuesday, December 25, 2007 11:10 AM

You can use google to search for other answers

Custom Search

More Threads

• Resize form only horizontally
• Creating Flat Tabs
• Confirmation
• What do I need for Avalon?
• Disabling Tabs
• Questions about PropertyGrid and ListView
• Problem with ContextMenuStrip size
• Visual subclassing
• Shortcut keys not working Winforms
• Passing Object from form to form.