What folder are icons stored in for delphi? -
Someone can use the folder that has been dragged from the icon> I want to see only icons and names from C I: Registry of program files or HKEY_LOCAL_MACHINE \ SOFTWARE but not both.
uses ShellAPi; Process LV_InsertFiles (strPath: string; ListView: TListView; ImageList: TImageList); Var i: integer; Icons: TIcon; SearchRec: TSearchRec; List System: TLISTim; File information: SHFILEINFO; Create a temporary icon icon: = TIcon.Create; ListView.Items.BeginUpdate; Search for the first file i: = FindFirst (strpath + '*. *', * FaAnyFile, SearchRec); While I = 0 starts from the list, start // if on Directories and Volumes (SearchRec.Attr and FaDirectory & lt;> FaDirectory) and (SearchRec.Attr and FaVolumeId> FaVolumeID)) then ListItem starts Do: = ListView. Items.Add; // Displayplanem SHGETFileInfo (PCARR (StreakTh + SearchRaek.Name), 0, File Info, SizeOff (File Info), SHGIIIDITAMI); Listitem.Caption: = FileInfo.szDisplayName; // Type no SHGetFileInfo (PCARR (Streakt + + Search.com name), 0, file info, size off (file info), SHGIITIPEPI); ListItem.SubItems.Add (FileInfo.szTypeName); // Get the symbol file SHGetFileInfo (PChar (strPath + SearchRec.Name), 0, file info, sizeoff (file infographic), SHGFIIO or SHGFIMLOcon); Icon.Handle: = FileInfo.hIcon; ListItem.ImageIndex: = ImageList.AddIcon (icon); // Icon Delete DestroyIcon (FileInfo.hIcon); End; End; I: = FindNext (SearchRec); End; The icon at the end. free; ListView.Items.EndUpdate; End; End; Process TForm1.Button1Click (Sender: Tubbed); Assign an Imagelist to the starting // list list view. View1.SmallImages: = ImageList1; // Show List View in Report Style and Add 2 Column List View1.ViewStyle: = vsReport; ListView1.Columns.Add; ListView1.Columns.Add; LV_InsertFiles ('C: \ Windows \', ListView1, ImageList1); End;
How can I just call the icon from my program folder, but only those people I want to do? For example, I just want to show limewire, Norton and say for example winmx how can I create code to call those codes that match the required people in my code? If Norton's name is in my code then it only pulls in Norton?
Answer MELT : Yes, but it needs to work on any other computer inside my network. I have a complete code, it only needs to search for places that I should do in that place.
I want to search my programs online, not every folder.
Symbols can be stored in many places. They can be ICO files, or are affiliated with executive-related resources or external DLL (ICL files are actually just DLL files which are nothing in ICO resources).
SHGetFileInfo routine you're calling, it is displayed in a way that specific file to the icon, is already looking at the file and that includes ICO resources, if so, Returns .. ..If it is not so, then it sees the file extension through the registry, whether the icon is attached to it, if it is, then it comes back.
Comments
Post a Comment