The valid values for the style are:

The MessageBox function return value corresponds to the button which the user pressed:

Example

if (MessageBox("Do you want to cancel the build", "Cancel Build", mbOKCANCEL) === mrOK){
   // build needs to stop
}