Private Declare Function CreateRectRgn Lib "gdi32" (ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long) As Long
Private Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, ByVal nCombineMode As Long) As Long
Private Declare Function FillRgn Lib "gdi32" (ByVal hDC As Long, ByVal hRgn As Long, ByVal hBrush As Long) As Long
Private Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function TranslateColor Lib "olepro32" Alias "OleTranslateColor" (ByVal Clr As OLE_COLOR, ByVal Palette As Long, Col As Long) As Long
'//
'-- Public Enums.:
Public Enum eWorkModeCts
[cnvScrollMode]
[cnvUserMode]
End Enum
'-- Property Variables:
Private m_Zoom As Long
Private m_WorkMode As eWorkModeCts
Private m_FitMode As Boolean
Private m_Enabled As Boolean
Private m_BackColor As OLE_COLOR
'-- Private Variables:
Private m_Width As Long
Private m_Height As Long
Private m_Left As Long
Private m_Top As Long
Private m_hPos As Long
Private m_hMax As Long
Private m_vPos As Long
Private m_vMax As Long
Private m_lsthPos As Single
Private m_lstvPos As Single
Private m_lsthMax As Single
Private m_lstvMax As Single
Private m_Down As Boolean
Private m_Pt As POINTAPI
'-- Event Declarations:
Public Event Click()
Public Event DblClick()
Public Event KeyDown(KeyCode As Integer, Shift As Integer)
Public Event KeyPress(KeyAscii As Integer)
Public Event KeyUp(KeyCode As Integer, Shift As Integer)
Public Event MouseDown(Button As Integer, Shift As Integer, x As Long, y As Long)
Public Event MouseMove(Button As Integer, Shift As Integer, x As Long, y As Long)
Public Event MouseUp(Button As Integer, Shift As Integer, x As Long, y As Long)