Share via


OSFeature.LayeredWindows Alan

Tanım

Katmanlı, üst düzey pencereler özelliğini temsil eder. Bu alan salt okunur durumdadır.

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

Alan Değeri

Örnekler

Aşağıdaki örnek, geçerli sistemin katmanlı pencereleri destekleyip desteklemediğini belirler. Temel sınıf yöntemi IsPresent aranacak özellik olarak ile LayeredWindows çağrılır. Sonuç bir metin kutusunda görüntülenir. Bu kod örneği oluşturulup bir forma yerleştirildiğini varsayar textBox1 .

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

Açıklamalar

Katmanlı bir pencere, işletim sistemi tarafından saydam veya yarı saydam yapılabilir. Katmanlı pencereler için destek ilk olarak Windows 2000'de kullanıma sunulmuştur.

Katmanlı pencereler özelliğinin yüklü olup olmadığını belirlemek için, temel sınıf yöntemini IsPresentLayeredWindows aranacak özellik olarak çağırmak için özelliğini kullanınFeature.

Alternatif olarak, yöntemini bulunabilecek özellik olarak çağırarak özelliğin GetVersionPresentLayeredWindows yüklenip yüklenmediğini de kontrol edebilirsiniz.

Şunlara uygulanır

Ayrıca bkz.