I'm attempting to save my document to disk but I have one problem. Using the default CDocument OnFileSave() and Serialize() does not allow me to edit the properties of the Windows File Save/Save As common dialog box. Normally I would instantiate an object of type CFileDialog and set the params there. However, I cannot find where the framework is actually calling a function to handle the ID_FILE_SAVE and ID_FILE_SAVEAS messages. I've put Message Boxes in every OnFileSave() I can think of - in the view, in the app, in the frame window, and in the document. None of these causes the message box to pop up.

So my question is how do I override the default ID_FILE_SAVE/SAVE AS behavior in MFC inside the doc/view architecture?