|
Partner
|
|
|
Überprüfen ob Glass verfügbar ist
Autor:
Jan Welker
|
Sprache:
C#
|
Bewertung:
noch nicht bewertet
|
Anzahl der Aufrufe:
3511
|
Beschreibung:
Unter Vista gibt es einen tollen Effekt namens "Glass". Mit diesem kann man den Hintergrund von Winforms wie ein Milchglass erscheinen lassen. So wird abgefragt ob Glass verfügbar ist:
Abgelegt unter: Vista, Glass.
|
| C# |
1
2
3
4
5
6
7
|
private bool isGlassAvailable()
{
[DllImport("dwmapi.dll")]static extern void DwmIsCompositionEnabled(ref bool pfEnabled);
bool isGlassSupported = false;
DwmIsCompositionEnabled(ref isGlassSupported);
return isGlassSupported;
}
|
|
Kommentare:
(Zum Schreiben von Kommentaren bitte anmelden.)
|
|
Diese Snippets könnten für Sie interessant sein:
|
|
|
|
|
|
|
|
|