Posted on 2000-03-06
I have an SDI application. It opens binary files, typically with an extension .WTD.
I want to add a File | Import menu item. The subsequent Open dialog box needs to show only files of a specific type (.SUM). When the user selects the desired file, I need to read in the data (it will be a text file) and merge it with the data already in the open document.
I have a menu item with generates an ID_FILE_IMPORT command. This calls my function OnFileImport ().
Now, how do I get this function to bring up the Open File dialog appropriately (with the .SUM file filter), then read in the text info so I can start merging it?
Working code especially appreciated! (I'm kinda new to MFC.)