|
-
Apr 10th, 2006, 05:57 AM
#1
Thread Starter
Frenzied Member
[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
Last edited by yrwyddfa; Apr 10th, 2006 at 09:18 AM.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Apr 10th, 2006, 07:18 AM
#2
Re: Icons
Have you tried the ImageList control? I think thats what i'd go for
-
Apr 10th, 2006, 08:09 AM
#3
Thread Starter
Frenzied Member
Re: Icons
No!
Unless you know of some way to properly control an ImageList control (and it's instantiation) in a DLL?
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Apr 10th, 2006, 08:27 AM
#4
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...
-
Apr 10th, 2006, 09:18 AM
#5
Thread Starter
Frenzied Member
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.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|