Change STATIC background color on mousemove

Yes, I know that STATIC control are not the way, they are old, bla, bla bla, but I want to try this, too. So, can you give me some ideas about how would I change the background color of a STATIC control when I move the mouse over it and reset it when I move the mouse out?
I could use WM_MOUSEHOVER, WM_MOUSELEAVE and WM_CTLCOLORSTATIC but how?
Thanks!
Last edited on
You need to subclass both the static control itself and the parent dialog.
Check open source implementations of hyperlink controls to get you a starting point.
Topic archived. No new replies allowed.