ISWIN function

Purpose | Determine whether a Control/Dialog/Window currently exists
Syntax | DialogExists& = ISWIN(hDlg&) ControlExists& = ISWIN(hParentDlg&, Ident&)

Remarks

The Window subsystem is checked to determine whether the specified Dialog or Control currently exists. This function may be used for a wide range of purposes, but it's particularly valuable when you want to be sure that a CONTROL was created successfully with the control add statement.

If you use a single parameter, it must specify the handle of a Window, Dialog, or Control you are checking. If you use two parameters, you would specify the handle of the parent and the identifier of the Control you are checking.

If the target of the function currently exists, TRUE (-1) is returned. If it does not exist, the return value is FALSE (0).

See also | CONTROL HANDLE, DIALOG NEW