An instance of foreign-owned-interface.
The function make-foreign-owned-interface creates an instance of foreign-owned-interface. interface can be used as the owner argument when displaying a dialog. For information about dialog owners, see the "Prompting for Input" chapter in the LispWorks CAPI User Guide .
handle must be supplied and is the window handle (Windows hwnd) of a window in some application. For a CAPI window this window handle can be obtained by simple-pane-handle. For non-CAPI applications, the method of finding the window handle will depend on the language and the way windows are represented, so you should consult the appropriate documentation.
(capi:simple-pane-handle *). The returned value is the window handle, it should be an integer. Denote this value by hwnd .
(setq foi (capi:make-foreign-owned-interface :handlehwnd
(capi:prompt-for-color "Color?" :owner foi).