I am trying to create owner drawn menu, with some icons on the left and with text on the right.
I use LoadIcon to load them from resources and
DrawIconEx to draw icons on menu DC, but I was wondering is it possible to draw icons
in black-white colors?

I need this becouse I want icons to be black-whited when mouse is not over their
menu item, and when mouse is over them to become highlited by drawing
them normally with colors.
Is this possible to achieve with some API's or I will need to create two versions of each icon, one
black-white and other colored.
Posted on 2003-06-09 18:56:13 by Mikky
You could use LoadImage to load the icon, this way you could specify the size, and use LR_MONOCHROME for the fuLoad parameter which will load the icon in black and white.

Or you could use your LoadIcon and then use DrawState which has some cool features...
Posted on 2003-06-09 19:04:46 by Gunner
Thanks for quick answer,

I've just tried both of your methods but nether do the job as I want.
Ok when I said black-white I meant more on black-gray-white, like on old TV's
those two methods will give you exacaly the ether black or white pixels which is pretty ugly.
I saw this kind of stuff to be done in a lot of programs, I am just not sure wether they
used two images or some API's.
Posted on 2003-06-09 20:36:10 by Mikky