Programmatically add files to Start Menu's "My Recent Documents" list
Posted on 2008-10-15
How do I add files to the "My Recent Documents" list from within an MFC Windows C++ program ?
Whenever I Open/Save a file using the CFileDialog, it adds it OK. Whenever I open my application by clicking on one of its specific file types, it adds it OK. All this happens without me doing anything special.
When I open a file with drag/drop onto my application, that filename does not get added to the MRD list.
I am maintaining my own in-program Most Recently Used File list, and that works OK.
It's the MRD list on the Start Menu that I'm interested in.
Actually, this might not be an MFC thing; it might be a pure Windows API thing.