Highlighting Images
-
Does anyone here know how to highlight an icon ( or other image type ). I am working on a project that i want to be able to display an icon with some text and have it be able to obtain a selected state it which the image will becomes "hazed" with the system highlight color much like the icons in the windows shell when you click on them. The closest i have come on my own is using the AlphaBlend function but then i am left with a background that isn't transparent and so i can't Blt it to the Primary DC. Any ideas? Please note that i can not use Image Lists to do this. Joseph Dempsey joseph_r_dempsey@yahoo.com
-
Does anyone here know how to highlight an icon ( or other image type ). I am working on a project that i want to be able to display an icon with some text and have it be able to obtain a selected state it which the image will becomes "hazed" with the system highlight color much like the icons in the windows shell when you click on them. The closest i have come on my own is using the AlphaBlend function but then i am left with a background that isn't transparent and so i can't Blt it to the Primary DC. Any ideas? Please note that i can not use Image Lists to do this. Joseph Dempsey joseph_r_dempsey@yahoo.com
I think it can be done with
DrawState
, usingGetSysColorBrush(COLOR_HIGHLIGHT)
as the brush. If this does not work, some playing around with the parameters may get the result you desire. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
I think it can be done with
DrawState
, usingGetSysColorBrush(COLOR_HIGHLIGHT)
as the brush. If this does not work, some playing around with the parameters may get the result you desire. Joaquín M López Muñoz Telefónica, Investigación y DesarrolloYou know, that was the first function that came to mind for me as well but unfortunatly there is no state flag for selected. I'll look into drawing it with a brush like you said though but i don't think i'm going to hold my breath because MSDN docs on the function say that the brush is only used for drawing the image in a monochrome state which wouldn't do me to much good :( Joseph Dempsey joseph_r_dempsey@yahoo.com