Fórum Abrir Explorer e selecionar vários arquivos #398729
05/04/2011
0
Rodrigo
Curtir tópico
+ 0Posts
08/04/2011
Rodrigo
Gostei + 0
11/04/2011
Rodrigo
//---------------------------------------------------------------------------#include <shlobj.h>
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma link "shell32.lib"
#pragma argsused
int main(int argc, char* argv[])
{
// Initialize COM
CoInitialize(NULL);
LPITEMIDLIST pidlFolder = ILCreateFromPath("C:\\Sitrad");
LPITEMIDLIST *pidlChildren = new LPITEMIDLIST[5];
pidlChildren[0] = ILCreateFromPath("C:\\Sitrad\\Logo.bmp");
pidlChildren[1] = ILCreateFromPath("C:\\Sitrad\\logo 4_5.bmp");
pidlChildren[2] = ILCreateFromPath("C:\\Sitrad\\LogoHelpESP.bmp");
pidlChildren[3] = ILCreateFromPath("C:\\Sitrad\\LogoHelpING.bmp");
pidlChildren[4] = ILCreateFromPath("C:\\Sitrad\\LogoHelpPTB.bmp");
// Open Folder
SHOpenFolderAndSelectItems(pidlFolder, 5, (PCUITEMID_CHILD_ARRAY)pidlChildren, 0);
// Free allocated objects
ILFree(pidlFolder);
for (int x = 0; x < 5; x++) {
ILFree(pidlChildren[x]);
}
delete[] pidlChildren;
return 0;
}
//---------------------------------------------------------------------------
Gostei + 0
17/04/2011
Thiago Santana
Com ele vc ira abrir o explorer atraves do Delphi!
Espero ter ajudado...
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)