OSFeature.LayeredWindows Pole

Definicja

Reprezentuje funkcję okien warstwowych najwyższego poziomu. To pole jest tylko do odczytu.

public: static initonly System::Object ^ LayeredWindows;
public static readonly object LayeredWindows;
 staticval mutable LayeredWindows : obj
Public Shared ReadOnly LayeredWindows As Object 

Wartość pola

Przykłady

Poniższy przykład określa, czy bieżący system obsługuje okna warstwowe. Metoda IsPresent klasy bazowej jest wywoływana za LayeredWindows pomocą funkcji do wyszukania. Wynik jest wyświetlany w polu tekstowym. W tym kodzie założono, że textBox1 wystąpienie zostało utworzone i umieszczone w formularzu.

private:
   void LayeredWindows()
   {
      // Gets the version of the layered windows feature.
      Version^ myVersion = OSFeature::Feature->GetVersionPresent(
         OSFeature::LayeredWindows );
      
      // Prints whether the feature is available.
      if ( OSFeature::Feature->IsPresent( OSFeature::LayeredWindows ) )
      {
         textBox1->Text = "Layered windows feature is installed.";
      }
      else
      {
         textBox1->Text = "Layered windows feature is not installed.";
      }
   }
private void LayeredWindows() {
   // Gets the version of the layered windows feature.
   Version myVersion =
       OSFeature.Feature.GetVersionPresent(OSFeature.LayeredWindows);

   // Prints whether the feature is available.
   if (OSFeature.Feature.IsPresent(OSFeature.LayeredWindows))
      textBox1.Text = "Layered windows feature is installed.";
   else
      textBox1.Text = "Layered windows feature is not installed.";
}
Private Sub LayeredWindows()
    ' Gets the version of the layered windows feature.
    Dim myVersion As Version = _
       OSFeature.Feature.GetVersionPresent(OSFeature.LayeredWindows)
       
    ' Prints whether the feature is available.
    If OSFeature.Feature.IsPresent(OSFeature.LayeredWindows) Then
        textBox1.Text = "Layered windows feature is installed."
    Else
        textBox1.Text = "Layered windows feature is not installed."
    End If
End Sub

Uwagi

Okno warstwowe może być przezroczyste lub przezroczyste przez system operacyjny. Obsługa okien warstwowych została po raz pierwszy wprowadzona w systemie Windows 2000.

Aby określić, czy funkcja warstwowych okien jest zainstalowana, użyj Feature właściwości , aby wywołać metodę klasy bazowej za LayeredWindows pomocą funkcji IsPresent wyszukiwania.

Alternatywnie możesz sprawdzić, czy funkcja jest zainstalowana, wywołując metodę GetVersionPresent z LayeredWindows funkcją jako funkcję do znalezienia.

Dotyczy

Zobacz też