A dialog is a window that receives some input from the user and returns it to the application. For instance, if the application wants to know where to save a file, it could prompt the user with a file dialog. Dialogs can also be cancelled, meaning that the application should cancel the current operation.
In order to let you know whether or not the dialog was cancelled, CAPI dialogs always return two values. The first value is the return value itself, and the second value is
if the dialog returned normally and
if the dialog was cancelled.
The CAPI provides both a large set of predefined dialogs and the means to create your own. This chapter takes you through some example uses of the predefined dialogs, and then shows you how to create custom built dialogs.