BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ScaleHeight = 105
ScaleWidth = 137
DataField = ""
BitmapDataPath = ""
AnnDataPath = ""
PanWinTitle = "PanWindow"
CLeadCtrl = 0
End
Begin LEADLib.LEAD Lead2
Height = 1815
Left = 2760
TabIndex = 1
Top = 1560
Width = 2175
_Version = 65536
_ExtentX = 3836
_ExtentY = 3201
_StockProps = 229
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ScaleHeight = 121
ScaleWidth = 145
DataField = ""
BitmapDataPath = ""
AnnDataPath = ""
PanWinTitle = "PanWindow"
CLeadCtrl = 0
End
Attribute VB_Name = "ViewFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Windows functions
#If Win32 Then
Private Type POINTAPI
x As Long
y As Long
End Type
Private Declare Function CreatePen Lib "gdi32" (ByVal nPenStyle As Long, ByVal nWidth As Long, ByVal crColor As Long) As Long
Private Declare Function GetStockObject Lib "gdi32" (ByVal nIndex As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function GetROP2 Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function SetROP2 Lib "gdi32" (ByVal hdc As Long, ByVal nDrawMode As Long) As Long
Private Declare Function Ellipse Lib "gdi32" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function LineTo Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Private Declare Function MoveToEx Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpPoint As POINTAPI) As Long
Private Declare Function Rectangle Lib "gdi32" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
#Else
Private Declare Function GetDC Lib "User" (ByVal hWnd As Integer) As Integer
Private Declare Function ReleaseDC Lib "User" (ByVal hWnd As Integer, ByVal hdc As Integer) As Integer
Private Declare Function CreatePen Lib "GDI" (ByVal nPenStyle As Integer, ByVal nWidth As Integer, ByVal crColor As Long) As Integer
Private Declare Function GetStockObject Lib "GDI" (ByVal nIndex As Integer) As Integer
Private Declare Function SelectObject Lib "GDI" (ByVal hdc As Integer, ByVal hObject As Integer) As Integer
Private Declare Function DeleteObject Lib "GDI" (ByVal hObject As Integer) As Integer
Private Declare Function GetROP2 Lib "GDI" (ByVal hdc As Integer) As Integer
Private Declare Function SetROP2 Lib "GDI" (ByVal hdc As Integer, ByVal nDrawMode As Integer) As Integer
Private Declare Function Ellipse Lib "GDI" (ByVal hdc As Integer, ByVal X1 As Integer, ByVal Y1 As Integer, ByVal X2 As Integer, ByVal Y2 As Integer) As Integer
Private Declare Function LineTo Lib "GDI" (ByVal hdc As Integer, ByVal x As Integer, ByVal y As Integer) As Integer
Private Declare Function MoveTo Lib "GDI" (ByVal hdc As Integer, ByVal x As Integer, ByVal y As Integer) As Long
Private Declare Function Rectangle Lib "GDI" (ByVal hdc As Integer, ByVal X1 As Integer, ByVal Y1 As Integer, ByVal X2 As Integer, ByVal Y2 As Integer) As Integer
#End If
'Windows constants
Const PS_SOLID = 0
Const WHITE_BRUSH = 0
Const HOLLOW_BRUSH = 5
Const WHITE_PEN = 6
Const R2_NOT = 6
Dim StartX As Integer 'Starting point for click and drag, in screen pixels
Dim StartY As Integer 'Starting point for click and drag, in screen pixels
Dim EndX As Integer 'Ending point for click and drag, in screen pixels
Dim EndY As Integer 'Ending point for click and drag, in screen pixels
Dim BStartX As Integer 'Starting point for click and drag, in bitmap pixels
Dim BStartY As Integer 'Starting point for click and drag, in bitmap pixels
Dim BEndX As Integer 'Ending point for click and drag, in bitmap pixels
Dim BEndY As Integer 'Ending point for click and drag, in bitmap pixels
Dim Drawing As Integer 'True if the mouse button is down during any drawing action
Dim FirstDraw As Integer 'True for the first MouseMove event when we are drawing
Public FileName As String 'The file that we load to the Lead1 control on this form
Public ViewFactor As Integer 'Width of the drawing line, in bitmap pixels
Public DrawObject As Integer 'Refer to the DECL module for constants
Public DrawColor As Integer 'Refer to the DECL module for constants