Получить индекс иконки зная идентификатор?
От: VCoder http://wxbar.sf.net
Дата: 23.03.08 03:41
Оценка:
Имеем dll с иконками. Как получить индекс иконки зная идентификатор?
Например, есть
%SystemRoot%\system32\xpsp2res.dll, идентификатор == -2026
а индекс иконки == 59.
Как его (индекс) получить?

В MSDN описание ExtractIconEx:

...
nIconIndex
[in] Specifies the zero-based index of the first icon to extract. For example, if this value is zero, the function extracts the first icon in the specified file.
...
Windows 95/98/Me, Windows NT 4.0 and later: If this value is a negative number and either phiconLarge or phiconSmall is not NULL, the function begins by extracting the icon whose resource identifier is equal to the absolute value of nIconIndex. For example, use -3 to extract the icon whose resource identifier is 3.


т.е. вытащить иконку зная идентификатор ресурса можно, а вот как преобразовать идентификатор в индекс?
С уважением,
Дмитрий.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.