YesNo
Syntax
int YesNo(string promptString, ...)
Arguments
- promptString
- Specifies the prompt string for the Yes/No 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 or IDNO depending on which button the user clicks.
Description
This function displays a message box containing a text string, a YES and a NO button.
Example
YesNo( "Will you marry me?" );
if ( YesNo( "Will you marry me?" ) == IDYES)
Info( "Congratulations!");
else
Info( "Maybe later..." );
See Also
Info, msgBox, Warn, YesNoCancel