Behavior.OnMouseMove(Glyph, MouseButtons, Point) 方法

定义

在任何鼠标移动消息进入 BehaviorService 的装饰器窗口时调用。

public:
 virtual bool OnMouseMove(System::Windows::Forms::Design::Behavior::Glyph ^ g, System::Windows::Forms::MouseButtons button, System::Drawing::Point mouseLoc);
public virtual bool OnMouseMove (System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.MouseButtons button, System.Drawing.Point mouseLoc);
public virtual bool OnMouseMove (System.Windows.Forms.Design.Behavior.Glyph? g, System.Windows.Forms.MouseButtons button, System.Drawing.Point mouseLoc);
abstract member OnMouseMove : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.MouseButtons * System.Drawing.Point -> bool
override this.OnMouseMove : System.Windows.Forms.Design.Behavior.Glyph * System.Windows.Forms.MouseButtons * System.Drawing.Point -> bool
Public Overridable Function OnMouseMove (g As Glyph, button As MouseButtons, mouseLoc As Point) As Boolean

参数

g
Glyph

Glyph

button
MouseButtons

一个 MouseButtons 值,指示单击了哪个按钮。

mouseLoc
Point

发生移动的位置。

返回

如果消息已处理,则为 true;否则为 false

注解

OnMouseDoubleClick当任何鼠标移动消息进入 WndProc 的装饰器窗口的 时,BehaviorService将调用 方法。 首先将消息传递到行为堆栈中的最 Behavior 顶层。 true从此方法返回表示消息已由 Behavior 处理,不应继续处理。 从此处,消息将发送到适当的行为。

适用于

另请参阅