Displaying the Property Sheet for a file
-
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
-
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
-
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?
-
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?
-
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?
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