![]() |
![]() |
![]() |
Framework.CreateWindow Method |
Language: |
Creates a window for the application.
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
);
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.
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center