-
[Resolved] Icons
New to most things graphical . . .
I have a collection of objects which I need to expose their associated icon (there are two friend properties called LargeIcon, and SmallIcon)
The question, then. I want to return the icons in a format that is easy to use for the calling app (this collection of objects is in a DLL)
Should I be using a Byte(), or perhaps IPictureDisp, or even Image? I intend to keep the icons on disk in the original .ico file format. Perhaps it's better to use a resource file?
These icons will be used in context sensitive menus, toolbars - the whole caboodle.
Any advice (and supporting) code will be most gratefully received.
Cheers,
Yr
-
Re: Icons
Have you tried the ImageList control? I think thats what i'd go for
-
Re: Icons
No!
Unless you know of some way to properly control an ImageList control (and it's instantiation) in a DLL?
-
Re: Icons
put a form in the DLL, set the Visible = False
Then put an ImageList (Or any control) on the form, and use it from the DLL class...
-
Re: Icons
I can't do that. Apart from the lack of control over the resources (this DLL will be resident on a terminal server) it doesn't feel like a clean way of doing it.
I'm going for a RES file using LoadRes(n) to get the images.
Thanks for your input anyway.