Microsoft DirectX 9.0 SDK Update (October 2004)

Framework.SetWindow Method

Language:

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

Sets a previously created window for the framework to use.

Definition

Visual Basic .NET Public Sub SetWindow( _
    ByVal windowFocus As IntPtr, _
    ByVal windowDeviceFullscreen As IntPtr, _
    ByVal windowDeviceWindowed As IntPtr, _
    ByVal handleMessages As Boolean _
)
C# public void SetWindow(
    IntPtr windowFocus,
    IntPtr windowDeviceFullscreen,
    IntPtr windowDeviceWindowed,
    bool handleMessages
);
Managed C++ public: void SetWindow(
    IntPtr windowFocus,
    IntPtr windowDeviceFullscreen,
    IntPtr windowDeviceWindowed,
    bool handleMessages
);
JScript .NET public function SetWindow(
    windowFocus : IntPtr,
    windowDeviceFullscreen : IntPtr,
    windowDeviceWindowed : IntPtr,
    handleMessages : boolean
);

Parameters

windowFocus System.IntPtr. Handle of the Microsoft® Direct3D® focus window.
windowDeviceFullscreen System.IntPtr. Handle of the Microsoft® Direct3D® window used in full-screen mode.
windowDeviceWindowed System.IntPtr. Handle of the Microsoft® Direct3D® window used in windowed mode.
handleMessages System.Boolean. Set to true if the framework will handle and respond to messages for the window. Set to false the framework will not handle messages for the window, giving the application full responsibility for responding to messages.

Remarks

If the SetWindow method has not already been called, it will call it with default parameters. Instead of calling SetWindow you can call the CreateWindow method to create a new window.

No input parameter may be null. However, the same handle may be used for more than one parameter.


© 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