Open a Folder

Post Reply
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Open a Folder

Post by MarcoBoschi »

Dear friends
using this command I Open a folder

SHELLEXECUTE( 0 , 0 , cFolder , 0 , 0 , 1 )

where cFolder contains a name of a folder i.e. "c:\myprogram\images"


How can I close it?

bye
marco
Marco Boschi
info@marcoboschi.it
PeterHarmes
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Open a Folder

Post by PeterHarmes »

If you know the name of the window, use this:

SendMessage( FindWindow( 0, cWindowName, WM_CLOSE )

Hope this helps.

Pete
User avatar
MarcoBoschi
Posts: 925
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: Open a Folder

Post by MarcoBoschi »

Ok
Thanks
Marco Boschi
info@marcoboschi.it
Post Reply