You can post a WM_COMMAND message with ID_FILE_NEW to the main window.