Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2004.05.02;
Скачать: [xml.tar.bz2];

Вниз

Как загрузить иконку с определенным индексом из 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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.058 c
3-1081423665
innok
2004-04-08 15:27
2004.05.02
CommandText в ADO


1-1081992439
scorpi
2004-04-15 05:27
2004.05.02
Excel график.....!!!!


3-1081177027
YurikGl
2004-04-05 18:57
2004.05.02
Триггеры в IB


9-1068811512
MrAngel
2003-11-14 15:05
2004.05.02
glArrayElementEXT рисует, а вот glDrawArraysEXT не рисует :-)


14-1081856362
Alex_x
2004-04-13 15:39
2004.05.02
DCOM сервер неработает на NT2000 Server





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский