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. How to display "Properties" system dialog for multiple files?

How to display "Properties" system dialog for multiple files?

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

    Hi, how can I display system "Properties" dialog for more than one file/directory? Like in Explorer when I have selected multiple files/directories, I click right button and from context menu a select "Properties". Now I use this code: SHELLEXECUTEINFO sei; ZeroMemory(&sei, sizeof(sei)); sei.cbSize = sizeof(sei); sei.hwnd = AfxGetMainWnd()->GetSafeHwnd(); sei.nShow = SW_SHOW; sei.lpFile = filePath; sei.lpVerb = _T("properties"); sei.fMask = SEE_MASK_INVOKEIDLIST; ShellExecuteEx(&sei) It works fine for single file/directory. But how can I display that dialog for more than one file/directory? Thanks in advance.

    S 1 Reply Last reply
    0
    • S s_k

      Hi, how can I display system "Properties" dialog for more than one file/directory? Like in Explorer when I have selected multiple files/directories, I click right button and from context menu a select "Properties". Now I use this code: SHELLEXECUTEINFO sei; ZeroMemory(&sei, sizeof(sei)); sei.cbSize = sizeof(sei); sei.hwnd = AfxGetMainWnd()->GetSafeHwnd(); sei.nShow = SW_SHOW; sei.lpFile = filePath; sei.lpVerb = _T("properties"); sei.fMask = SEE_MASK_INVOKEIDLIST; ShellExecuteEx(&sei) It works fine for single file/directory. But how can I display that dialog for more than one file/directory? Thanks in advance.

      S Offline
      S Offline
      s_k
      wrote on last edited by
      #2

      Now I trid to put NULL char between file paths and double NULL at the end of list, but it also doesn't work...

      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