Click to See Complete Forum and Search --> : Implementing icons and bitmaps in true color with vis studio


kirkslota
January 25th, 2002, 10:05 PM
I've seen many apps created with visual studio in C/C++ and all of the images are true color, however whenever I attempt to create or import bitmaps and/or icons, they are downgraded to 256 colors or 16 colors for small icons. Anybody know the solution to this?

Igor Soukhov
January 27th, 2002, 01:29 PM
Very strange, I used VC++ 60 to import trucolor bitmaps into resources and all works fine for me.
Yeah, the resource editor can't show these image and therefore can't be used to edit it - but all works fine in run-time.

Please - rate answer if it helped you
It gives me inspiration when I see myself in the top list =)

Best regards,

-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor@soukhov.com | ICQ:57404554 | http://soukhov.com

Russian Software Developer Network http://rsdn.ru

sharding
March 5th, 2002, 01:15 PM
Hi, Igor,
I am also experiencing this problem.

Question: are the tru-color icons you import being used for list-box, tree-control, or tool-bar icons?

I am using a tru-color image directly in a dialog box (my about box), and this works fine.

I am also using a tru-color image for my splash page, and this works fine. The image is displayed using a CBitmap object.

But the icons I import for list-boxes, tool-bars and tree-controls are all getting remapped to 16-colors at run-time.

So, have you used tru-color icons in any of these situations?
Thanks for any help.

sharding
March 5th, 2002, 03:57 PM
Go to http://www.codeguru.com/toolbar/HiColorToolbar.shtml

This is an example that works.