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

定義

會在任何滑鼠移動 (Mouse-Move) 訊息進入 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 處理,不應繼續處理。 從這裡,訊息會傳送至適當的行為。

適用於

另請參閱