Sdílet prostřednictvím


OSFeature.LayeredWindows Pole

Definice

Představuje vrstvenou funkci oken nejvyšší úrovně. Toto pole je jen pro č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 základní třídy IsPresent se volá jako LayeredWindows funkce, která se má 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 k volání metody IsPresent základní třídy s LayeredWindows funkcí hledat.

Případně můžete zkontrolovat, jestli je tato funkce nainstalovaná, zavoláním GetVersionPresent metody jako LayeredWindows funkce, která ji najde.

Platí pro

Viz také