PresentParameters.DeviceWindow Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the display window.

Definition

Visual Basic Public Property DeviceWindow As ControlLeave Site
C# public ControlLeave Site DeviceWindow { get; set; }
C++ public:
property ControlLeave Site^ DeviceWindow {
        ControlLeave Site^ get();
        void set(ControlLeave Sitevalue);
}
JScript public function get DeviceWindow() : ControlLeave Site
public function set DeviceWindow(ControlLeave Site);

Property Value

System.Windows.Forms.Control
A ControlLeave Site that represents the display window.

This property is read/write. 

Remarks

For a full-screen application, the display window is the cover window. For applications that use multiple full-screen devices (such as a system with multiple monitors), exactly one device can use the focus window as the device window. All other devices must have unique device windows.

For a windowed-mode application, the display window is the default target window for Device.Present. If this property is null, the focus window is taken.

Note that the runtime does not attempt to reflect user changes in window size. The back buffer is not implicitly reset when this window is reset. However, the Device.Present method does automatically track window position changes.