Mouse move

Light Poster
23Apr2008,11:13   #1
sampathkambar's Avatar
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
Go4Expert Founder
23Apr2008,14:10   #2
shabbir's Avatar
Each control should have some option in the Paint method of there own to support such a glow method
Light Poster
24Apr2008,09:10   #3
sampathkambar's Avatar
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
Go4Expert Founder
24Apr2008,13:17   #4
shabbir's Avatar
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