Einzelnen Beitrag anzeigen

Benutzerbild von JasonDX
JasonDX
(CodeLib-Manager)

Registriert seit: 5. Aug 2004
Ort: München
1.062 Beiträge
 
#16

Re: Transparenz wie bei Vista

  Alt 24. Aug 2006, 00:21
Zitat von alias5000:
On-Topic: ist es möglich, bestimmte Zonen vom AlphaBlending auszunehmen? Dann könnte man das so rum machen
Nein, zumindest interpretiere ich das aus dem MSDN so:
Dort steht
Layered Windows
Using a layered window can significantly improve performance and visual effects for a window that has a complex shape, animates its shape, or wishes to use alpha blending effects. [...] layered windows can be partially translucent, that is, alpha-blended.

To create a layered window, specify the WS_EX_LAYERED extended window style when calling the CreateWindowEx function, or call the SetWindowLong function to set WS_EX_LAYERED after the window has been created. After the CreateWindowEx call, the layered window will not become visible until the SetLayeredWindowAttributes or UpdateLayeredWindow function has been called for this window. Note that WS_EX_LAYERED cannot be used for child windows.
Und iirc ist jede Komponente auf dem Formular auch als "Child Window" zu betrachten.
Sprich: in #5 duerfte der letzte Absatz als Unfug bezeichnet werden

Wie es schlussendlich funktioniert, weiss ich nicht. Aber ich hab das Gefuehl, dass das nach einem AlphaChannel riecht. *g*
Zumindest keonnte man so bestimmten Bereichen eine gewisse Transparenz zuschreiben, und anderen wieder nicht. (bspw. ist die aeusserste Pixelreihe des Rahmens wieder nicht transparent...) Wie das genau funktioniert, das weiss ich nicht, waere aber auf ein Ergebnis gespannt

greetz
Mike
Mike
Passion is no replacement for reason
  Mit Zitat antworten Zitat