OpenWindowEx

www.progui.co.uk  Top  Previous  Next

OpenWindowEx()

Syntax

WindowID (HWND) = OpenWindowEx(Title$, x, y, InnerWidth, InnerHeight, Flags.i, Skin.i, ParentHwnd.i)

Description

 

Note this command is currently experimental and unsupported.

 

Opens/Creates a new window according to the specified parameters. Title$ is the text string that will be displayed in the window's title bar. x and y are the coordinates of where the new window will be positioned on screen. InnerWidth and InnerHeight specify the required client area (without borders and window decorations).

 
The new window becomes the active window unless the window is created as invisible.
 
Skin.i is currently an inactive place-holder parameter there for future expansion.

 
ParentHwnd.i specifies the handle of the window that our new window will be contained inside and can be null.
 
Possible flags are:

 

#Window_Minimize                Adds the minimize control to the window title bar.

#Window_Maximize                Adds the maximize control to the window title bar.

#Window_Size                          Adds the sizeable feature to a window.

#Window_Invisible                Creates the window but won't display it.

#Window_TitleBar                Creates a window with a titlebar.

#Window_Tool                        Creates a window with a smaller titlebar and no taskbar entry.

#Window_BorderLess                Creates a window without any borders.

#Window_ScreenCentered        Centers the window in the middle of the screen. x,y parameters are ignored.

#Window_WindowCentered        Centers the window in the middle of the parent window ('ParentHwnd.i' must be specified). x,y parameters are ignored.

#Window_OpenMaximized        Opens the window maximized.

#Window_OpenMinimized        Opens the window minimized.

 

Returns a handle (HWND) to the new window or zero for failure.

 

 

General Index