Вниз
Скачать: 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.44 MB
Время: 0.03 c
1-1081857431
Liona
2004-04-13 15:57
2004.05.02
Какой тип у TMemo?


3-1081230888
maxz
2004-04-06 09:54
2004.05.02
Не могу в ClientDataSet выставить свойство Active в true


11-1065766982
Deimos
2003-10-10 10:23
2004.05.02
Где найти пример модуля для работы с JPEG


14-1081315094
Vint
2004-04-07 09:18
2004.05.02
сегодня праздник


1-1081942853
ЁПРСТ
2004-04-14 15:40
2004.05.02
Почему OnMouseWheel срабатывает три раза?




   Наверх