p;HFFFFFFFA
Private Const STATE_SYSTEM_UNAVAILABLE = &amp;H1&amp;         '// Disabled

Private Enum EMiddleButtonScrollerEndMode
   eAnyButtonPress
   eMiddleButtonRelease
End Enum

Public Enum EMiddleButtonScrollerMode
   eNone
   ePixelBased
   eLineBased
End Enum

Private m_hWnd As Long
Private m_hWndParent As Long
Private m_tP As POINTAPI
Private m_bInMiddleScroll As Boolean
Private m_bInitial As Boolean
Private m_eMode As EMiddleButtonScrollerEndMode
Private m_bHasHorizontalScroll As Boolean
Private m