Please enable JavaScript to view this site.

A-Shell Reference

Updated December 2023

If parentid (Integer) is specified when creating a new control, the new control becomes a child of the specified control. This has two primary ramifications: 1) the coordinates of the child control are taken to be relative to the client area of the parent, and 2) such child controls will be automatically deleted when the parent is deleted or cleared.

If parentid is not specified (or is zero), it defaults to the current modal dialog (if any), provided that the MBF2_NOAUTOPARENT flag is not specified.

Parentid, like ctlid, may also be expressed as an alphanumeric string.

See Also

History

2006 July, A-Shell 4.9.961:  Dialogs created with AUI_CONTROL may now specify a parent ID of -1 to signify that the dialog is a child of the main window. The default (0) makes the new dialog a child of the current dialog, if any.