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. C / C++ / MFC
  3. Displaying the Property Sheet for a file

Displaying the Property Sheet for a file

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • M Offline
    M Offline
    magesh
    wrote on last edited by
    #1

    Hi, How do I display the same Property Sheet that is shown when we select 'Properties' from the context menu on a file in Windows Explorer. I want to display the properties of a file, but do not want to create a dialog template of my own and populate the dialog with all the information. I want to reuse the resource that Explorer uses. Is this possible? Thanks in advance, Magesh

    M 1 Reply Last reply
    0
    • M magesh

      Hi, How do I display the same Property Sheet that is shown when we select 'Properties' from the context menu on a file in Windows Explorer. I want to display the properties of a file, but do not want to create a dialog template of my own and populate the dialog with all the information. I want to reuse the resource that Explorer uses. Is this possible? Thanks in advance, Magesh

      M Offline
      M Offline
      Mike Dunn
      wrote on last edited by
      #2

      Call ShellExecute() on the file, with a verb of "properties" --Mike--

      M 2 Replies Last reply
      0
      • M Mike Dunn

        Call ShellExecute() on the file, with a verb of "properties" --Mike--

        M Offline
        M Offline
        magesh
        wrote on last edited by
        #3

        I tried the following code fragment from the WM_LBUTTONDOWN handler of an SDI app ShellExecute(this->GetSafeHwnd(), "properties", "c:\\temp\\sharedfile.txt", NULL, "c:\\temp", SW_SHOW); This call returns the error code SE_ERR_NOASSOC (0x1f) and does not display the property sheet for the file. What's wrong with this code?

        1 Reply Last reply
        0
        • M Mike Dunn

          Call ShellExecute() on the file, with a verb of "properties" --Mike--

          M Offline
          M Offline
          magesh
          wrote on last edited by
          #4

          I tried the following code fragment from the WM_LBUTTONDOWN handler of an SDI app ShellExecute(this->GetSafeHwnd(), "properties", "c:\\temp\\sharedfile.txt", NULL, "c:\\temp", SW_SHOW); The file exists in the specified directory. This call returns the error code SE_ERR_NOASSOC (0x1f) and does not display the property sheet for the file. What's wrong with this code?

          B 1 Reply Last reply
          0
          • M magesh

            I tried the following code fragment from the WM_LBUTTONDOWN handler of an SDI app ShellExecute(this->GetSafeHwnd(), "properties", "c:\\temp\\sharedfile.txt", NULL, "c:\\temp", SW_SHOW); The file exists in the specified directory. This call returns the error code SE_ERR_NOASSOC (0x1f) and does not display the property sheet for the file. What's wrong with this code?

            B Offline
            B Offline
            Brian Hart
            wrote on last edited by
            #5

            Dear Magesh, In the forum, you posted: "This call returns the error code SE_ERR_NOASSOC (0x1f) and does not display the property sheet for the file. What's wrong with this code?" I'm not sure, but I think that the "properties" and some other new verbs are only available on Windows 2000. The only ones available for Windows 95/98/NT are "open" "explore" and "print." (I think.) :) Cheers, Brian Hart

            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