Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ShellExecute to show the a standard file properties dialog... Don't work... Could you help me!??

14 views
Skip to first unread message

Eric F

unread,
Jul 12, 2005, 11:17:03 AM7/12/05
to
Hi!

I have to invoke from my MFC app the properties dialog of a file.

I tought to the ShellExecute verb and tought to the verb "properties"...
but it is don't work... It seems that this verb is not supported by the
majority of file extention in the registery...

Is somone have any idee to show the shell properties dialog of a file
programatically in VC++ and MFC?

Thank
Eric

Eric F

unread,
Jul 12, 2005, 11:29:27 AM7/12/05
to Eric F
I Find the solution:

Rather then calling ShellExecut
I have to call the ShellExecuteEx like the following:

SHELLEXECUTEINFO aShExecInfo ={0};
aShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
aShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ;
aShExecInfo.hwnd = m_hWnd;
aShExecInfo.lpVerb = "properties";
aShExecInfo.lpFile = aCurrentPath;
aShExecInfo.lpParameters = "";
aShExecInfo.lpDirectory = NULL;
aShExecInfo.nShow = SW_SHOW;
aShExecInfo.hInstApp = NULL;
ShellExecuteEx(&aShExecInfo);

An it work well!

Thanks
Eric

0 new messages