quote:
Originally posted by SmokingCookie
Well, I've got my own version of ChildWindowFromPoint. But the entire problem is the "tracking WM_MOUSEMOVE": I am not receiving it at all.
That has to be something in your code then.
Attachment is untested as I am at work but let me know.
Not sure if it will work because I think the x and y coordiniates are in relation to the window not the screen. If this is the case then change the subclass routine to
js code:
function OnwndSubclassEvent_MessageNotification(pPlusWnd, nMessage, wParam, lParam) {
switch (nMessage) {
case WM_MOUSEMOVE:
var POINT = Interop.Allocate(8);
Interop.Call('user32', 'GetCursorPos', POINT);
var r = Interop.Call('user32', 'ChildWindowFromPointW', pPlusWnd.Handle, POINT);
if (r !== null)
Debug.Trace('i r on a control: '+r);
return -1; // Process the message little one
}
}