Warn
Syntax
- Warn(string promptString, ...)
Arguments
- promptString
- Specifies the prompt string for the warning 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
- IDOK or IDCANCEL depending on which button the user clicks.
Description
- This function displays a warning box containing a text string, an OK button and a Cancel button.
Example
Warn( "This might take a while..." );
Warn( "Your image is not a square" );
if ( Warn( "This might take a while..." ) == IDOK )
//apply the following filter code...
Also see
- msgBox, Info, Error
Comments
- Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.