Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.05 c
2-1160995936
ZZZ_ZZZ
2006-10-16 14:52
2006.10.29
Импорт данных из Excel в DBF


15-1160078303
SkySpeed
2006-10-05 23:58
2006.10.29
Где скачать балеты Чайковского: Щелкунчик и Лебединное озеро?


15-1160479002
Alexey 12
2006-10-10 15:16
2006.10.29
Ввод текста из документа


2-1160679520
dreamse
2006-10-12 22:58
2006.10.29
Проблема при перезагрузке


1-1157690774
Roma K
2006-09-08 08:46
2006.10.29
Ввод текта в окне чужего приложения




   Наверх