矩形调查 [英] Rectangle Survey

查看:86
本文介绍了矩形调查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everybody:

在Windows中,当你按下鼠标左键并拖动鼠标时,你会看到一个矩形创建,所以我需要进行矩形调查,我的意思是将矩形调查字符串,任何人都可以帮我这个。

感谢您的帮助。

Hello Everybody:
In Windows, when you press left-Mouse button and drag the mouse, you see a rectangle create, so I need to the rectangle survey, I mean to string the rectangle survey, Can anyone help me with this.
Thanks for your help.

推荐答案


大家好:

在Windows中,当你按下鼠标左键并拖动鼠标时,你会看到一个矩形创建,所以我需要进行矩形调查,我的意思是将矩形调查字符串,任何人都可以帮助我。

感谢您的帮助。
Hello Everybody:
In Windows, when you press left-Mouse button and drag the mouse, you see a rectangle create, so I need to the rectangle survey, I mean to string the rectangle survey, Can anyone help me with this.
Thanks for your help.



应用程序本身绘制该矩形。


也许您可以更好地描述您的问题?我想我明白了,你想要捕捉矩形的范围,但我不太确定你的实现,环境等。

The application itself draws that rectangle.

Perhaps you could describe your problem a bit better? I think I understand it, that you want to capture the range of the rectangle, but I am not quite sure of your implementation, environment, etc.



应用程序本身绘制该矩形。


也许您可以更好地描述您的问题?我想我明白了,你想要捕捉矩形的范围,但我不太确定你的实现,环境等等。
The application itself draws that rectangle.

Perhaps you could describe your problem a bit better? I think I understand it, that you want to capture the range of the rectangle, but I am not quite sure of your implementation, environment, etc.



你好:

我不想绘制,我想要捕捉矩形测量,我说的矩形是当你按下鼠标左键并在桌面上拖动鼠标(Windows资源管理器)时的矩形。 />
如果无法解决这个问题,请给我矩形位置(x,y)。

谢谢.....

Hello:
I dont want draw that, I want to capture the rectangle survey, the rectangle I talk about is the rectangle when you press left-Mouse button and drag the mouse in the desktop (windows explorer).
IF cant solve this, give me the rectangle position(x, y).
Thanks.....



你好:

我不想画那个,我想要捕捉矩形测量,我说的矩形是你按左键时的矩形 - 鼠标按钮并拖动桌面上的鼠标(Windows资源管理器)。

如果无法解决这个问题,请给我一个矩形位置(x,y)。

谢谢.....
Hello:
I dont want draw that, I want to capture the rectangle survey, the rectangle I talk about is the rectangle when you press left-Mouse button and drag the mouse in the desktop (windows explorer).
IF cant solve this, give me the rectangle position(x, y).
Thanks.....



当我这样做时,我抓住了mousedown和mouseup事件。他们的鼠标事件args具有当时鼠标的位置。


但这只有在您的程序成为焦点时才有效。如果没有,你将需要一个解决方法,其中我知道如何这样做的唯一方法是使用DirectX。


如果你想要解决方法,告诉我,我会为它发布一些代码。

When I did it, I just grabbed the mousedown and mouseup events. Their mouse event args have the location of the mouse at the time.

But that would only work if YOUR program held the focus. If it does not, you will need a workaround, in which the only way I know how to do so would be with DirectX.

If you want that workaround, tell me and I will post some code for it.


这篇关于矩形调查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆