WinXNewChildWindow


hWnd = WinXNewChildWindow (hParent, STRING title, style, exStyle, id)

Creates a new child window.

Parameter Description
hParent The handle to the parent window
STRING title The title for the child. This is not normally visible. You can get this text with the WinXGetText$ function
style The window style for this window. Leave 0 for default style
exStyle The extended style for this window. Leave 0 for default style
id The unique id constant for this child window.

Returns

The handle the the new child window or 0 on fail

Remarks

A child window can be thought of as a special control which responds to all the usual WinX functions. To set the size and position of your child window use the MoveWindow Win32 API call or the WinX Auto Sizer.

Examples

$$ID_CHILD = 100

...

' Create a simple child window
hChild = WinXNewChildWindow (#hMain, "", 0, 0, $$ID_CHILD)

Related Links

WinXNewWindow
WinXSetText
WinXGetText
WinXAutoSizer_SetSimpleInfo