共用方式為


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時,就會呼叫 方法。 訊息會先在此傳遞至行為堆疊中最上層 Behaviortrue從這個方法傳回表示 訊息是由處理Behavior,且不應繼續處理。 從這裡開始,訊息會傳送至適當的行為。

適用於

另請參閱