YesNoCancel

Syntax

int YesNoCancel(string promptString, ...)

Arguments

promptString
Specifies the prompt string for the Yes/No/Cancel message window. This string may contain printf-style format descriptors, which will be expanded using the succeeding arguments.
...
Variable number of arguments of varying types, should correspond to the format descriptors in promptString.

Return

IDYES, IDNO or IDCANCEL depending on which button the user clicks.

Description

This function displays a message box containing a text string, a YES, a NO and a CANCEL button.

Example

YesNoCancel ( "Do you want to buy %d stocks?" , M + X );
if ( YesNoCancel( "Will you marry me?" ) == IDYES)
    Info( "Congratulations!" );
else
    Info( "Go to..." );

Also see

msgBox

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.