swCreateWind

Creates a SceneLib window. 

cWind* swCreateWind ( 
tCHAR *name,   // name witch appears in the title bar
tINT width,    // width of the window (500)
tINT height,   // height of the window (350)
tINT x,        // x position of the window (20)
tINT y,        // y position of the window (20)
tDWORD style); // window style (WS_OVERLAPPEDWINDOW|
                               WS_CLIPSIBLINGS|
                               WS_CLIPCHILDREN)

Return value: Pointer to an instance of class cWind.

Remarks: For general information see the page about SceneLib Windows. The window created is initially not visible. You can show it with the command swShowWind. See the example MultiWind for multiple window programming. The style parameter is passed to the Win32 API function CreateWindow. To see all possible window style attributes check the SDK documentation under CreateWindow. The following attributes or attribute combinations are the most often used:

WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS | WS_CLIPCHILDREN (default) creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles.

WS_OVERLAPPED | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_SYSMENU creates a non resizable window with a system menu and a close box.

WS_POPUP | WS_MAXIMIZE creates a full screen window without anything (no frame, no title bar). With this style you will see only the contents of the SceneLib window. The console window is in the background and can be brought to the front only by the key combination Alt + Tab.