Thread View: borland.public.cppbuilder.nativeapi
4 messages
4 total messages
Started by Mike Collins
Mon, 14 Jul 2008 01:30
Invoking Program Shell Properties dialog
Author: Mike Collins
Date: Mon, 14 Jul 2008 01:30
Date: Mon, 14 Jul 2008 01:30
13 lines
1458 bytes
1458 bytes
Hay guys, just a quicky. Have no real idea how to do the following so any pointers would be great. I've got a list of programs and applications that a user has tried executed. I display this in a list for viewing. I want to provide the user a an option or link that allows them to see the Properties for a given program. To avoid having to code this all myself, I was wondering if there is a way to envoke the Shell Properies for a given application (like you get displayed when you right-click on a program and select Properties) Many thanks in advance, Mike
Re: Invoking Program Shell Properties dialog
Author: Mike Collins
Date: Mon, 14 Jul 2008 11:03
Date: Mon, 14 Jul 2008 11:03
25 lines
1627 bytes
1627 bytes
Hay guys,
Managed to work it out, though i'm not sure that it's the *correct* way.
Used ShellExecuteEx with the verb set to "properties" i.e.
AnsiString sz = Edit1->Text;
SHELLEXECUTEINFO execinfo;
memset (&execinfo, 0, sizeof (execinfo));
execinfo.cbSize = sizeof (execinfo);
execinfo.lpVerb = "properties";
execinfo.lpFile = sz.c_str();
execinfo.lpParameters = NULL;
execinfo.fMask = SEE_MASK_INVOKEIDLIST;
execinfo.nShow = SW_SHOW;
if (!ShellExecuteEx(&execinfo))
ShowMessage("Error opening properties");
- seems to work ok.
Mike
"Mike Collins" <its@TheBottomOfThePost> wrote in message
news:487a9b63@newsgroups.borland.com...
Re: Invoking Program Shell Properties dialog
Author: Bob Gonder
Date: Mon, 14 Jul 2008 15:48
Date: Mon, 14 Jul 2008 15:48
9 lines
1196 bytes
1196 bytes
Mike Collins wrote: >Managed to work it out, though i'm not sure that it's the *correct* way. Looks ok by me. When you decide to add a KidSafe tab to the properties dialog, this link might come in handy... http://www.omgili.com/newsgroups/microsoft/public/platformsdk/shell/edLyJtZ1IHA528TK2MSFTNGP02phxgbl.html
Re: Invoking Program Shell Properties dialog
Author: Mike Collins
Date: Mon, 14 Jul 2008 23:51
Date: Mon, 14 Jul 2008 23:51
9 lines
1357 bytes
1357 bytes
LOL Ahh Bob, great minds think alike. I'd actually just thought of that this morning and add it to the wish list for version 2. Many thanks for the link - it's really good. Was looking at an article at codeproject but it used ALT and i didn't like that :-( Cheers
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads