If you need more flexibility than the standard message dialog boxes, you must derive a new dialog box from AFXDialog and provide the specialized handling. For more information, see Custom dialog boxes.