Microsoft DirectX 9.0 SDK Update (October 2004)

Framework.CreateWindow Method

Language:

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

Creates a window for the application.

Definition

Visual Basic .NET Public Sub CreateWindow( _
    ByVal windowTitle As String, _
    ByVal icon As Icon, _
    ByVal menu As MainMenu, _
    ByVal x As Integer, _
    ByVal y As Integer _
)
C# public void CreateWindow(
    string windowTitle,
    Icon icon,
    MainMenu menu,
    int x,
    int y
);
Managed C++ public: void CreateWindow(
    String *windowTitle,
    Icon *icon,
    MainMenu *menu,
    int x,
    int y
);
JScript .NET public function CreateWindow(
    windowTitle : String,
    icon : Icon,
    menu : MainMenu,
    x : int,
    y : int
);

Parameters

windowTitle System.String. The title to use for the form that is created.
icon System.Drawing.Icon. The icon to use for the form that is created.
menu System.Windows.Forms.MainMenu. The menu to use for the form that is created.
x System.Int32. The horizontal start position for the window that is created.
y System.Int32. The vertical start position for the window that is created.

Remarks

This method is called by the framework with default parameter if the application calls the CreateDevice, SetDevice, or CreateDeviceFromSettings methods before this method.

Instead of calling CreateWindow, you can call SetWindow to change the settings of the current window used by the application.


© 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