OSFeature.LayeredWindows Campo

Definición

Representa la característica de ventanas por capas de nivel superior. Este campo es de solo lectura.

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

Valor de campo

Ejemplos

En el ejemplo siguiente se determina si el sistema actual admite ventanas superpuestas. Se llama al método IsPresent de clase base con LayeredWindows como la característica que se va a buscar. El resultado se muestra en un cuadro de texto. Este código supone textBox1 que se ha creado una instancia y se ha colocado en un formulario.

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

Comentarios

El sistema operativo puede hacer transparente o translúcido una ventana superpuesta. La compatibilidad con ventanas superpuestas se introdujo por primera vez en Windows 2000.

Para determinar si está instalada la característica de ventanas superpuestas, use la Feature propiedad para llamar al método IsPresent de clase base con LayeredWindows como característica que se va a buscar.

Como alternativa, puede comprobar si la característica está instalada llamando al GetVersionPresent método con LayeredWindows como la característica que se va a buscar.

Se aplica a

Consulte también