Anyone knows how do i draw a border around any window below the mouse cursor?
And also, how do i detect a mouse click and the flags when i clicked the mouse
outside of my application?
thanks
Printable View
Anyone knows how do i draw a border around any window below the mouse cursor?
And also, how do i detect a mouse click and the flags when i clicked the mouse
outside of my application?
thanks
I can help you solve the first problem. If you find my solution useful, I suggest you to post the second part of your problem to get attention of others and get help as well.
To draw a border arround any window below the cursor you can create a timer. Then, inside the OnTimer() function get the point where the mouse is at that moment using the GetCursorPos() funcion. Afterwards you can get a pointer to the the window below that point using the GetWindowFromPoint() function. You can then create a screen DC using CClientDC dc(NULL); and then draw a rectangle for example whith the coordinates obtaind form GetWindowRect().
**************************************************
Please, don't forget to rate my post.
If you need further help, send me a message!