Вниз
Скачать: CL | DM;

Как загрузить иконку с определенным индексом из ico-файла   Найти похожие ветки 

 
Islander   (2004-04-13 12:31) [0]

Приветствую!

Есть ico-файл, содержащий в себя несколько иконок. Как возможно, зная индекс иконки, загрузить ее в объекст типа TIcon?


 
Serge ©   (2004-04-13 12:54) [1]

It"s time to look through the help


The ExtractIconEx function retrieves the handle of an icon from the specified executable file, dynamic-link library (DLL), or icon file.

HICON ExtractIconEx(

   LPCSTR lpszFile,
   int nIconIndex,
   HICON FAR * phiconLarge,
   HICON FAR * phiconSmall,
   UINT nIcons  
  );


Parameters

lpszFile

Pointer to a null-terminated string specifying the name of an executable file, DLL, or icon file.

nIconIndex

Specifies the index of the icon to retrieve. If this value is 0, the function returns the handle of the first icon in the specified file. If this value is -
1 and phIconLargeand phiconSmall are both NULL, the function returns the total number of icons in the specified file.

phiconLarge

Pointer to an array of handles of large icons returned. This parameter can be NULL.

phiconSmall

Pointer to an array of handles of small icons returned. This parameter can be NULL.

nIcons

Specifies the count of the number of icons to extract.



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

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



Память: 0.45 MB
Время: 0.023 c
1-1081879743
VasRog
2004-04-13 22:09
2004.05.02
Стартовое число в Randomize


14-1081622468
Brahman
2004-04-10 22:41
2004.05.02
В это вечер..


1-1082035779
Garmahis
2004-04-15 17:29
2004.05.02
Цвет панели.


3-1081346919
Koba
2004-04-07 18:08
2004.05.02
Базы данных


3-1080896123
Balkon
2004-04-02 12:55
2004.05.02
Вопрос по SQL.




   Наверх