Re: disable mouseclick-transparency in vista

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hallo Sebastian,

In the OnPaint function I filled the Clientrectangle with Color.Violet. If I run my program in WindowsXP the Mouse-events get raised. If I run the same program under Windows Vista the mouse events does not get raised. But why? I have no Aero enabled.

Vor-Vista-OS haben hier einen dokumentierten Bug, wenn DoubleBuffer auf true ist. Wird DoubleBuffer auf false gesetzt, ist das Verhalten wie in Vista (korrekt). Vista setzt das hier gemäss Doku um:

Zitat Doku:
"Alle Mausaktionen, z. B. ein Mausklick, die für die transparenten Bereiche des Formulars ausgeführt werden, werden an die Fenster weitergegeben, die sich *unter* dem transparenten Bereich befinden. Wenn beispielsweise der Clientbereich eines Formulars transparent ist, wird die Ereignisbenachrichtigung für einen Mausklick in diesem Bereich an das jeweils *darunter* befindliche Fenster gesendet."

[Form.TransparencyKey-Eigenschaft]
http://msdn2.microsoft.com/de-de/library/system.windows.forms.form.transparencykey(VS.80).aspx

[BUG: TransparencyKey does not work for double-buffered controls in 32-bit color mode]
http://support.microsoft.com/kb/820640/en-us

Info in diesem Zusammenhang auch:

[BUG: The TransparencyKey property is not effective for Windows forms if the color depth of the monitor is set to a value that is greater than 24-bit
http://support.microsoft.com/kb/822495/en-us


ciao Frank
--
Dipl.Inf. Frank Dzaebel [MCP/MVP C#]
http://Dzaebel.NET

.



Relevant Pages

  • Re: RIP microsoft.public.windows.vista.general
    ... Trouble is since you use Ubuntu, ... the ones for flops like Vista. ... You should die when Windows 7 comes out. ...
    (microsoft.public.windows.vista.general)
  • What Does It Take to Get a PC With XP?
    ... I won't waste time rehashing the argument over whether Windows Vista ... that virtually every copy of Vista Business or Vista Ultimate Edition ... machines doesn't mean that its employees understand that policy. ...
    (misc.consumers)
  • Re: List of Applications Not Compatible with Leopard
    ... If there is an equal on Windows I truly would love to know about ... program on the Plasq frontpage was clearly taken on Vista. ... the product is on both Windows and Mac. ... hardware than Vista works on PC hardware is hardly "silly". ...
    (comp.sys.mac.advocacy)
  • Re: OS/2 mentioned in a Vista review
    ... You can also install it in a classic way in 2K (and XP, and 2003 and Vista) by ... That may be a good basis of comparison for you, but to someone who is already displeased with the previous standard of operation of Windows, what should that mean? ... It can be done on XP or OS/2, ... Consider: full-screen apps. ...
    (comp.os.os2.misc)
  • Re: I cant install critical updates
    ... I resolved error message problem from Vista Security Center by uninstalling and reinstalling Antivir. ... How it comes I can't either manage to install manually failing updates? ... Be sure to obtain the correct version for Windows x86. ... Windows Update Agent File Versions: ...
    (microsoft.public.windowsupdate)