How can I know that the mouse is/is not over my control
-
I have a custom control, and the user can click and move an item on my control, but if the mouse go outside the control... I can't do anything. How can we control that. (my class is derived from cwnd) Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com
-
I have a custom control, and the user can click and move an item on my control, but if the mouse go outside the control... I can't do anything. How can we control that. (my class is derived from cwnd) Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com
check for WM_NCMOUSEMOVE; (non-client mousemove messages) or, you can call SetCapture to cage the beast to your control. You can also use GetCapture and ReleaseCapture to ensure that you recieve all of the mouse messages, if you are the greedy type. :suss: Darin Rousseau http://www.rinlex.com/fssi/development/ darin@rinlex.com
-
check for WM_NCMOUSEMOVE; (non-client mousemove messages) or, you can call SetCapture to cage the beast to your control. You can also use GetCapture and ReleaseCapture to ensure that you recieve all of the mouse messages, if you are the greedy type. :suss: Darin Rousseau http://www.rinlex.com/fssi/development/ darin@rinlex.com
Thanks!!! I've used the SetCapture and that's it! Very easy to play whit this is a miracle to my problem.... I know I look like a newbies but it's a little bit true whit MFC... Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com N'oubliez pas que l'enfer aussi a ses miracles