Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding a file to Windows MRU

Adding a file to Windows MRU

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yarp
    wrote on last edited by
    #1

    I think I've seen a SDK function that does this : adding a file path to the Windows/Explorer recently opened documents list. At the beginning I thought I would find the answer quickly - it was in the morning - please, can someone give me the name of that function ? Thanks, Yarp http://www.senosoft.com/

    G B 2 Replies Last reply
    0
    • Y yarp

      I think I've seen a SDK function that does this : adding a file path to the Windows/Explorer recently opened documents list. At the beginning I thought I would find the answer quickly - it was in the morning - please, can someone give me the name of that function ? Thanks, Yarp http://www.senosoft.com/

      G Offline
      G Offline
      Gary Kirkham
      wrote on last edited by
      #2

      Have a look at SHAddToRecentDocs[^] Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read

      Y 1 Reply Last reply
      0
      • G Gary Kirkham

        Have a look at SHAddToRecentDocs[^] Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read

        Y Offline
        Y Offline
        yarp
        wrote on last edited by
        #3

        I'm a complete idiot. I scaned the internet, the Add*, Update* Set* SDK functions and forgot to check the SH* ones. Thanks a lot for the info, Yarp http://www.senosoft.com/

        1 Reply Last reply
        0
        • Y yarp

          I think I've seen a SDK function that does this : adding a file path to the Windows/Explorer recently opened documents list. At the beginning I thought I would find the answer quickly - it was in the morning - please, can someone give me the name of that function ? Thanks, Yarp http://www.senosoft.com/

          B Offline
          B Offline
          Bob Stanneveld
          wrote on last edited by
          #4

          Hello, Take a look at this[^]. It works fine for me. But note when you use the code in the article that you do not need to override the CWinApp::OpenDocumentFile() function. I didn't and it still works. In technical note 22[^] it is said that it's better to leave that function alone. Hope that this is what you are looking for. I also got the blogging virus..[^]

          Y 1 Reply Last reply
          0
          • B Bob Stanneveld

            Hello, Take a look at this[^]. It works fine for me. But note when you use the code in the article that you do not need to override the CWinApp::OpenDocumentFile() function. I didn't and it still works. In technical note 22[^] it is said that it's better to leave that function alone. Hope that this is what you are looking for. I also got the blogging virus..[^]

            Y Offline
            Y Offline
            yarp
            wrote on last edited by
            #5

            Hi Bob, I was looking for how to add a file to the Windows MRU. This is done with the SHAddToRecentDocs function as Gary told me - I did it this morning in my app and it works fine. In my software I handled the MRU manually, since I also wanted to use the list for other purpose. Thanks anyway. Yarp http://www.senosoft.com/

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups