OSFeature.LayeredWindows Champ
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Représente la fonctionnalité windows de niveau supérieur superposée. Ce champ est en lecture seule.
public: static initonly System::Object ^ LayeredWindows;
public static readonly object LayeredWindows;
staticval mutable LayeredWindows : obj
Public Shared ReadOnly LayeredWindows As Object
Valeur de champ
Exemples
L’exemple suivant détermine si le système actuel prend en charge les fenêtres superposées. La méthode IsPresent de classe de base est appelée comme LayeredWindows fonctionnalité à rechercher. Le résultat est affiché dans une zone de texte. Ce code suppose qu’il textBox1 a été instancié et placé sur un formulaire.
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
Remarques
Une fenêtre superposée peut être transparente ou translucide par le système d’exploitation. La prise en charge des fenêtres en couches a été introduite pour la première fois dans Windows 2000.
Pour déterminer si la fonctionnalité windows en couches est installée, utilisez la propriété pour appeler la Feature méthode IsPresent de classe de base avec LayeredWindows comme fonctionnalité à rechercher.
Vous pouvez également vérifier si la fonctionnalité est installée en appelant la GetVersionPresent méthode comme LayeredWindows fonctionnalité à rechercher.