NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

OSFeature.DEVICECONTEXT_LIMITED

Represents the limited device contexts feature. This static (in Visual Basic Shared) field is read-only.

[Visual Basic]
Public Shared ReadOnly DEVICECONTEXT_LIMITED As Object
[C#]
public static readonly object DEVICECONTEXT_LIMITED;
[C++]
public: static readonly Object* DEVICECONTEXT_LIMITED;
[JScript]
public static var DEVICECONTEXT_LIMITED : Object;

Remarks

On some operating systems the number of outstanding device contexts is limited to five. This feature is present when the operating system has this limitation.

To determine whether the number of outstanding device contexts is limited to five, use feature to call the base class method IsPresent with DEVICECONTEXT_LIMITED to specify the feature to look for. Or call the GetVersionPresent method of feature with DEVICECONTEXT_LIMITED to specify the feature.

Example [Visual Basic]

The following example determines whether this system supports limited device contexts. The base class method IsPresent is called with DEVICECONTEXT_LIMITED 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 LimitedDeviceContext()
   'Print whether the feature is available.
   If (OSFeature.feature.IsPresent("OSFeature.DEVICECONTEXT_LIMITED")) Then
      TextBox1.Text = "The number of the outstanding device contexts " & _
         "is limited to 5."
   Else
      TextBox1.Text = "The number of the outstanding device contexts " & _
         "is not limited to 5."
   End If
End Sub

See Also

OSFeature Class | OSFeature Members | System.WinForms Namespace | IsPresent | GetVersionPresent | LAYERED_WINDOWS | GDI_LONG_STRINGS