Microsoft DirectX 9.0 SDK Update (October 2004)

PresentParameters.DeviceWindow Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the display window.

Definition

Visual Basic .NET Public Property DeviceWindow As Control
C# public Control DeviceWindow { get; set; }
Managed C++ public: __property Control* get_DeviceWindow();
public: __property void set_DeviceWindow(Control*);
JScript .NET public function get DeviceWindow() : Control
public function set DeviceWindow(Control);

Property Value

System.Windows.Forms.Control . A Control Leave 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center