C# Class Longkong.WinFormsUI.DragHandlerBase

DragHandlerBase is the base class for drag handlers. The derived class should: 1. Define its public method BeginDrag. From within this public BeginDrag method, DragHandlerBase.BeginDrag should be called to initialize the mouse capture and message filtering. 2. Override the OnDragging and OnEndDrag methods.
Inheritance: IMessageFilter
Mostra file Open project: Longkong/Pojjaman

Private Properties

Property Type Description
AssignHandle void
CallWindowProc System.IntPtr
EndDrag void
IMessageFilter bool
ReleaseHandle void
SetWindowLong System.IntPtr
SetWindowLong System.IntPtr
WndProc System.IntPtr

Public Methods

Method Description
DragHandlerBase ( ) : System

Protected Methods

Method Description
BeginDrag ( Control c ) : bool
OnDragging ( ) : void
OnEndDrag ( bool abort ) : void
OnPreFilterMessage ( Message &m ) : bool

Private Methods

Method Description
AssignHandle ( IntPtr hWnd ) : void
CallWindowProc ( IntPtr prevWndFunc, IntPtr hWnd, int iMsg, IntPtr wParam, IntPtr lParam ) : IntPtr
EndDrag ( bool abort ) : void
IMessageFilter ( Message &m ) : bool
ReleaseHandle ( ) : void
SetWindowLong ( IntPtr hWnd, int nIndex, IntPtr wndFunc ) : IntPtr
SetWindowLong ( IntPtr hWnd, int nIndex, WndProcCallBack wndProcCallBack ) : IntPtr
WndProc ( IntPtr hWnd, int iMsg, IntPtr wParam, IntPtr lParam ) : IntPtr

Method Details

BeginDrag() protected method

protected BeginDrag ( Control c ) : bool
c System.Windows.Forms.Control
return bool

DragHandlerBase() public method

public DragHandlerBase ( ) : System
return System

OnDragging() protected method

protected OnDragging ( ) : void
return void

OnEndDrag() protected method

protected OnEndDrag ( bool abort ) : void
abort bool
return void

OnPreFilterMessage() protected method

protected OnPreFilterMessage ( Message &m ) : bool
m System.Windows.Forms.Message
return bool