Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.05.02;
Скачать: 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 вся ветка

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

Наверх




Память: 0.47 MB
Время: 0.029 c
3-1080892115
Yad
2004-04-02 11:48
2004.05.02
TAdoConnection


1-1082015581
siriusP
2004-04-15 11:53
2004.05.02
Как сохранить, загрузить содержимое фрейма в Bitmap?


1-1081762397
Beglec
2004-04-12 13:33
2004.05.02
Масштаб (Количество 96 точек/дюйм) - а как быть с 120 точками


4-1078389788
evvcom
2004-03-04 11:43
2004.05.02
Побочный эффект от перехвата API-вызова


1-1082209420
vin
2004-04-17 17:43
2004.05.02
отловить Mouse за пределами формы