An instance of foreign-owned-interface.
make-foreign-owned-interface creates an instance of foreign-owned-interface.
can be used as the
argument when displaying a dialog. For information about dialog owners, see Dialogs: Prompting for Input.
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).
CAPI User Guide and Reference Manual (Windows version) - 25 Feb 2015