hello all , which API to use to find out , when user has click and drag in region of the screen , return a rectangle or a call back function to return the x ,y coordinates .
Printable View
hello all , which API to use to find out , when user has click and drag in region of the screen , return a rectangle or a call back function to return the x ,y coordinates .
Well using Win32 API your window will receive WM_LBUTTONDOWN and WM_LBUTTONUP messages. If the user clicks and drags then these two messages will have different coords. You could write a custom function to create the RECT using those coords.
I don't know of anyhting that does this...but that doesn't mean much :p
How to draw a rubber band rectangle or a focus rectangle in Visual C#
http://support.microsoft.com/kb/314945
Even though the code is for C# it is actually nearly identical to the C/C++ code just the event handlers are done in a different way.
thank you all