Framework.SetWindow(IntPtr,IntPtr,IntPtr,Boolean) Method (SetWindow)

Sets a previously created window for the framework to use.

Definition

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

Parameters

windowFocus System.IntPtr
Handle of the Microsoft Direct3D focus window.
windowDeviceFullscreen System.IntPtr
Handle of the Direct3D window used in full-screen mode.
windowDeviceWindowed System.IntPtr
Handle of the 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.