Toolbar and icon's

Is there a way to display a icon image on a toolbar's button face or do you have to use a bitmap image?

Thanks
EyooperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MichaelSCommented:
not sure I catch the problem. can you clarify it a bit?
0
TimCotteeHead of Software ServicesCommented:
I am pretty certain that you need to use a bitmap.
0
EyooperAuthor Commented:
I'm referring to ( image.ico)  versus ( image.bmp).

Thanks;
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

TimCotteeHead of Software ServicesCommented:
Ok I admit it I was wrong on this, if you use an image list to store the images for the toolbar then you can certainly use .ico files as well as .bmp.

The available options are .gif,.jpg,.bmp,.dib,.ico,.cur.

0
EyooperAuthor Commented:
I'm writtin a file manager program in MASM, I can extract the
system icons .ico for the various storage devices and I would
like to display thoses storage device icon's on my toolbar.

Thanks;
 
0
MichaelSCommented:
Ok, you can get the image list from your toolbar (using TB_GETIMAGELIST) and after this use ImageList_AddIcon(). For sure if you have a file first you should call LoadImage().
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EyooperAuthor Commented:
Ok, that seems to work. Now can I display text along with my
..ico image on the toolbar button?

Thanks;
0
MichaelSCommented:
you can, but it looks like other question :)
0
mjswartCommented:
Displaying text _and_ a picture is tricky for a button:
I believe CSXButton on www.codeguru.com has a class you can use with MFC:

http://codeguru.developer.com/buttonctrl/bitmap_text_button.shtml

Maybe you could adapt it for a toolbar button

Good luck
Mike
0
EyooperAuthor Commented:
Thank you;
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.