WorkflowDesignerMessageFilter.OnMouseCaptureChanged 方法

定義

發生於透過滑鼠拖曳所選擇的項目變更時。

protected:
 virtual bool OnMouseCaptureChanged();
protected virtual bool OnMouseCaptureChanged ();
abstract member OnMouseCaptureChanged : unit -> bool
override this.OnMouseCaptureChanged : unit -> bool
Protected Overridable Function OnMouseCaptureChanged () As Boolean

傳回

如果要處理訊息為 true,否則為 false

範例

下列程式碼範例示範如何覆寫 OnMouseCaptureChanged 方法以傳回 false,讓設計工具結構中的其他元件也可以處理方法。

這個程式碼範例是 DesignerShell.cs 檔案中<Basic Designer Hosting SDK>範例的一部分。 如需詳細資訊,請參閱基本Designer裝載

protected override bool OnMouseCaptureChanged()
{
    //Allow other components to process this event by not returning true.
    mouseDown = false;
    return false;
}
Protected Overrides Function OnMouseCaptureChanged() As Boolean
    ' Allow other components to process this event by not returning true.
    mouseDown = False
    Return False
End Function

備註

OnMouseCaptureChanged 發生於透過滑鼠拖曳所選擇的項目變更時。

適用於

另請參閱