Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.10.29;
Скачать: CL | DM;

Вниз

Как получить иконку из расширения файла?   Найти похожие ветки 

 
Darkwing ©   (2006-10-10 15:29) [0]

ExtractAssociatedIcon не катит т.к. сам файл не существует а есть только текстовая строка с расширением? Можно ковыряться в реестре самому, но может есть путь попроще?


 
clickmaker ©   (2006-10-10 15:42) [1]

SHGetFileInfo


 
Darkwing ©   (2006-10-10 15:52) [2]


> clickmaker ©


а как быть с этим:

WINSHELLAPI DWORD WINAPI SHGetFileInfo(

   LPCTSTR pszPath,  
   ...
   ...
  );

pszPath:
Pointer to a buffer that contains the path and filename. Both absolute and relative paths are valid.

имени то нету.

и еще [Now Supported on Windows NT]


 
Darkwing ©   (2006-10-10 15:54) [3]

сорри. я прочитал [NoT Supported on Windows NT]. ошибся.

а вот с именем файла что делать?


 
clickmaker ©   (2006-10-10 15:54) [4]


> а как быть с этим:

справку читай внимательней
If the uFlags parameter includes the SHGFI_USEFILEATTRIBUTES flag, this parameter does not have to be a valid file name. The function will proceed as if the file exists with the specified name and with the file attributes passed in the dwFileAttributes parameter. This allows you to obtain information about a file type by passing just the extension for pszPath and passing FILE_ATTRIBUTE_NORMAL in dwFileAttributes


> и еще [Now Supported on Windows NT]

и что?


 
Darkwing ©   (2006-10-10 15:56) [5]

ок. вопрос снят.


> clickmaker ©

Спасибо. :)



Страницы: 1 вся ветка

Текущий архив: 2006.10.29;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.031 c
2-1160806111
gidd
2006-10-14 10:08
2006.10.29
TPopupMenu


15-1160381006
i-am-vladko
2006-10-09 12:03
2006.10.29
Проблемы с Zeos - не ставится под Delphi 5


1-1158331708
Doma
2006-09-15 18:48
2006.10.29
Методы и процедуры


3-1156904590
Lex_!
2006-08-30 06:23
2006.10.29
DBGrid вставка и удаление полей в RunTime


2-1160909875
Lexa11_2002
2006-10-15 14:57
2006.10.29
Paradox и сложные запросы