Creates the window for the application.
HRESULT DXUTCreateWindow( CONST const WCHAR * strWindowTitle, HINSTANCE hInstance, HICON hIcon, HMENU hMenu, INT x, INT y );
If the function succeeds, the return value is S_OK. If the function fails, the return value can be one of the error codes in DXUTERR.
This function creates a new window for the application; alternately, the application can handle window creation and pass the desired window handle to DXUT by using the DXUTSetWindow function. If neither DXUTCreateWindow nor DXUTSetWindow has been called before calling a device creation framework method, the framework will call DXUTCreateWindow using the default parameter values. The window width and height are set later using the device settings.
All parameters are optional.
If both x and y are CW_USEDEFAULT and a windowed non-primary Direct3D device is created, the window will automatically be moved to the adapter's monitor to ensure maximum performance.
Header: Declared in Dxut.h.