I would like to know if the following is possible.
I have a .ico file containing several sizes and color depth. However, it also contains some custom sizes that will be used inside my application.
The application accesses the icon through the resource library. (It is assumed that the DLL is provided by a third-party developer)
Is there a way to pinpoint which of the icons in the .ico file to use in my application? How do I want this size to be displayed here in my GUI, etc.
For example, I make a button in my application and I would like my custom 15 * 32 icon from my .ico file to appear on the button.
I know that this is possible by adding bitmaps one at a time to the resource DLL, providing each of them with a unique name.
But it would be easier if I could identify the different contents of the icon file.
Is it possible to somehow look at the icon file as an array of icons or something like that?
Any help is greatly appreciated. It seems rather difficult to find information about this subject on the Internet.
Oh, and I am writing my application in C # using the MFC DLL (from Visual C ++ to create my resource DLL)
source
share