>When a mouse is over an object, the object does not have focus. Of course, you could kludge this by invoking the SetFocus() Method. But then you have an interface that would in all liklihood, drive people nuts.
>
>I guess I will turn it around here. What is the value of having the events you ask for? What specifically would you do with them?
John,
This detection is available in the OLEDragOver event. The last parameter passed in to OLEDRagOver is nState which has a number indicating if the mouse has just entered, is moving around within, or is leaving the object. This can be invaluable when you want to change the mouse pointer or alter the color or appearance of the object being moused over. You don't really want to set the mouse cursor every time the mouse moves within the control's space, only when it enters and then when it leaves. The nState parameter allows you do just that.