|
-
February 20th, 2011, 01:39 AM
#1
Click N Drag
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 .
-
February 20th, 2011, 02:02 AM
#2
Re: Click N Drag
 Originally Posted by aamir121a
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
-
February 21st, 2011, 04:26 PM
#3
Re: Click N Drag
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.
-
February 21st, 2011, 07:05 PM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|