You can use this template to create message boxes and any other dialogs.
Tip: You can also create other templates for dialogs with, for example, Yes, No, and Cancel buttons. First create the dialog and then right-click on the source file's node in the Explorer and choose Save As Template from the contextual menu.