Mouseover
-
You could use TrackMouseEvent() using the button's HWND to request to receive WM_MOUSEHOVER and WM_MOUSELEAVE messages. In response to those messages, change the button's bitmap appropriately. Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
-
Hi, the previous answer is the best way, but if you are in VC++ and not so advanced in knowledge you can make something similar (but not optimal). Check where the button is to know its coordinates in the actual map mode (if you don't know exactly where the button is at coding-time). Use the "void OnMouseMove(UINT nFlags, CPoint point)" and check if the cursor is On the button or Not. I use it to change cursor when the user is on a moveable point in one graphical report.
-------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?