I think it should return mrCancel in case of ESC or X button click, regardless of the existing buttons. If the buttons are No and Yes, you cannot simply map that to either No or Yes. Which one is cancel? That depends on the question. -- Felipe Monteiro de Carvalho