jwh
asked on
How to get file's and directory's properties sheets
In "Windows Explorer" when we right-click on some file or directory item, we can get its shortcut menu,in which there are a item named as "Properties". If we select this item, windows will show us a properties sheet of the file.
I want to get the "properties" sheet in my own program. Can anyone tell me how to implement it?
I want to get the "properties" sheet in my own program. Can anyone tell me how to implement it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry,
sei.lpFile = "<the file's mame>";
should of course read
sei.lpFile = "<the file's name>";
;-)
sei.lpFile = "<the file's mame>";
should of course read
sei.lpFile = "<the file's name>";
;-)
'http://www.geocities.com/SiliconValley/4942/common.html'
This _undocumented_ function will do the same:
"Displaying Object Propert
The last function I'm goin
SHObjectProperties. This i
the properties dialog for
to display the properties
value is 178 and the funct
BOOL WINAPI SHObjectPro
HWND hwndOwner,
UINT uFlags,
LPCSTR lpstrName,
LPCSTR lpstrParamete
hwndOwner identifies
lpstrName points to a stri
name or the printer name w
will be displayed. uFlags
name contained in lpstrNam
lpstrParameters points to
OPF_PRINTERNAME 0x01
OPF_PATHNAME 0x02
Figure 5 SHObjectProperti
the name of the page that
Parameters is NULL, the fi
will be selected.
If the function succ
the function fails, the re
ded error information, cal
dialog is actually modeles
dialog will probably still
wing when the user has clo
I should also mentio
the properties for a file
complish the same thing wi
function ShellExecuteEx, s
lpVerb parameter. This doe
names though. "