Represents the layered, top-level windows feature. This static (in Visual Basic Shared) field is read-only.
[Visual Basic] Public Shared ReadOnly LAYERED_WINDOWS As Object [C#] public static readonly object LAYERED_WINDOWS; [C++] public: static readonly Object* LAYERED_WINDOWS; [JScript] public static var LAYERED_WINDOWS : Object;
Layered windows are available only in Windows 2000. A layered window can be made transparent or translucent by the operating system.
To determine if the LAYERED_WINDOWS feature is present, use feature to call the base class method IsPresent with LAYERED_WINDOWS as the feature to look for. Or call the GetVersionPresent method of feature with LAYERED_WINDOWS to specify the feature.
The following example determines whether this system supports layered windows. The base class method IsPresent is called with LAYERED_WINDOWS as the feature to look for. The result is displayed in a text box. This code assumes Button1 and TextBox1 have been instantiated.
[Visual Basic]
Private Sub LayeredWindows() 'Print whether the feature is available. If (OSFeature.feature.IsPresent("OSFeature.LAYERED_WINDOWS")) Then TextBox1.Text &= "Again, layered windows feature is installed." Else TextBox1.Text &= "Again, layered windows feature is not installed." End If End Sub
OSFeature Class | OSFeature Members | System.WinForms Namespace | IsPresent | GetVersionPresent | DEVICECONTEXT_LIMITED | GDI_LONG_STRINGS