Creates a new BGI window with fixed size.
Takes sTitle (String), iWidth (Int), and iHeight (Int).
Returns the window ID on success, 0 on failure.
BGI GUI
Parameters & Returns
Parameters
sTitleString
iWidthInt
iHeightInt
Returns
Int
Quick Summary
Creates a new BGI window with fixed size.
Takes sTitle (String), iWidth (Int), and iHeight (Int).
Returns the window ID on success, 0 on failure.
Technical Exegesis...
Creates a new GUI window using the BGI_WINDOW window class. Registers the window class if not already registered (CS_DBLCLKS style, COLOR_BTNFACE+1 background). Creates window with WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_VISIBLE | WS_CLIPCHILDREN style (fixed size, no resize, but with close button and menu support). WS_CLIPCHILDREN prevents painting over child controls like WebView2. Centers the window on screen with CenterWindow, shows it with SW_SHOW.
Creates a new GUI window using the BGI_WINDOW window class. Registers the window class if not already registered (CS_DBLCLKS style, COLOR_BTNFACE+1 background). Creates window with WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_VISIBLE | WS_CLIPCHILDREN style (fixed size, no resize, but with close button and menu support). WS_CLIPCHILDREN prevents painting over child controls like WebView2. Centers the window on screen with CenterWindow, shows it with SW_SHOW. Creates a CGizmo structure storing window handle, title, position, dimensions, and state (visible=true, enabled=true). Stores in global gizmoMap with auto-incremented gizmoIDCount. Returns the window ID on success, 0 on failure.
The returned window ID is used with all other BGI window functions. Windows are automatically centered on screen. Width and height specify client area dimensions. The window cannot be resized by the user (fixed size). Use bgiSetWindowVisibility to hide/show, bgiSetWindowEnabled to enable/disable. Window receives BGI events through the event system (bgiGetEventMessage).