PresentParameters.DeviceWindowHandle Property |
Language: |
Retrieves or sets the display window.
Visual Basic Public Property DeviceWindowHandle As IntPtr C# public IntPtr DeviceWindowHandle { get; set; } C++ public:
property IntPtr DeviceWindowHandle {
IntPtr get();
void set(IntPtr value);
}JScript public function get DeviceWindowHandle() : IntPtr
public function set DeviceWindowHandle(IntPtr);
System.IntPtr
This property is read/write.
Pointer to an object that represents the display window.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center