Mouse move

sampathkambar's Avatar, Join Date: Jan 2008
Light Poster
Hi,

I hav created a dialog based application,which contains numerous owner draw controls( Buttons).Now i want them to be glowing when i move my mouse over those buttons.For example in media players.

Kindly help.

Rgds,
Sampath
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Each control should have some option in the Paint method of there own to support such a glow method
sampathkambar's Avatar, Join Date: Jan 2008
Light Poster
I am not getting any idea.
I am using OnDrawItem() in which i am loading bitmaps onto those controls.
Usually what method developers use to have such effect??


Rgds,
Sampath
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You don't need to load the images each time you paint. When the control is created you can load the items into a member variable and draw accordingly in the OnDrawItem function