OSFeature.LayeredWindows Pole

Definice

Představuje vrstvenou funkci oken nejvyšší úrovně. Toto pole je jen ke čtení.

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

Hodnota pole

Příklady

Následující příklad určuje, zda aktuální systém podporuje vrstvené okna. Metoda IsPresent základní třídy je volána s LayeredWindows funkcí, kterou chcete vyhledat. Výsledek se zobrazí v textovém poli. Tento kód předpokládá textBox1 vytvoření instance a umístění do formuláře.

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

Poznámky

Vrstvené okno může být průhledné nebo průsvitné operačním systémem. Podpora vrstvených oken byla poprvé zavedena v systému Windows 2000.

Chcete-li zjistit, zda je nainstalována funkce vrstvených oken, použijte Feature vlastnost pro volání metody IsPresent základní třídy s LayeredWindows jako funkci, kterou chcete vyhledat.

Případně můžete zkontrolovat, jestli je tato funkce nainstalovaná, zavoláním GetVersionPresent metody s LayeredWindows jako funkcí, kterou chcete najít.

Platí pro

Viz také