The sample wizard that creates a dialog application has an EndDialog() call in both the IDOK (from the Ok button)and the WM_CLOSE from the (default close button) messages, this appears to result in two exit points from the application. Would it be more appropriate to change the EndDialog call in the IDOK section to a SendMessage with a WM_CLOSE so that there is only one exit point