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. Open file and recent files in MFC

Open file and recent files in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
2 Posts 2 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.
  • I Offline
    I Offline
    includeh10
    wrote on last edited by
    #1

    2 questions (1)how to get difference when user loads a file from "Open file" and "Recent fil" - or, how to know if user clicks a "Recent file" rather than "Open file"? In my app, I used a setteing (or check register) to record "recent files", I think it is not a good way. (2)how to change maximum allowed count of "recent files"?

    X 1 Reply Last reply
    0
    • I includeh10

      2 questions (1)how to get difference when user loads a file from "Open file" and "Recent fil" - or, how to know if user clicks a "Recent file" rather than "Open file"? In my app, I used a setteing (or check register) to record "recent files", I think it is not a good way. (2)how to change maximum allowed count of "recent files"?

      X Offline
      X Offline
      XtremDev
      wrote on last edited by
      #2

      1 => the function AddToRecentFileList of the application is automatically called by the document to complete the MRU (Most Recent Files) file list when the application open a MRU file, the function OnOpenRecentFile is called by the application class 2 => in your class application::InitInstance there's the fuction LoadStdProfileSettings(5) which is called. This define the number of MRU

      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