VC++: How to display standard Properties dialog box?
How to display standard Properties dialog box?
If we right click on a file in Windows Explorer and select Properties from the popup menu it displays a dialog box showing all the properties of that file. We can display the Properties dialog box programmatically. Following code snippet will show Properties dialog box of abc.doc file which is in C drive.
SHELLEXECUTEINFO sh = { 0 } ;
sh.cbSize = sizeof ( sh ) ;
sh.fMask = SEE_MASK_INVOKEIDLIST ;
sh.lpVerb = "properties" ;
sh.lpFile = "C:\\abc.doc" ;
ShellExecuteEx ( &sh ) ; 



Comments
Log in or create a user account to comment.