Attribute VB_Name = "Spline" '***************************************************************************** '* '* Copyright (c) 1998, KL GROUP INC. All Rights Reserved. '* http://www.klg.com '* '* This file is provided for demonstration and educational uses only. '* Permission to use, copy, modify and distribute this file for '* any purpose and without fee is hereby granted, provided that the '* above copyright notice and this permission notice appear in all '* copies, and that the name of KL Group not be used in advertising '* or publicity pertaining to this material without the specific, '* prior written permission of an authorized representative of '* KL Group. '* '* KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY '* OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED '* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR '* PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY '* DAMAGES SUFFERED BY USERS AS A RESULT OF USING, MODIFYING OR '* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. '* '***************************************************************************** Option Explicit Public Type TRACKER Original As Boolean Linear As Boolean End Type Public Type POINTAPI x As Long y As Long End Type #If Win32 Then Public Declare Function CreatePen Lib "gdi32" (ByVal nPenStyle As Long, ByVal nWidth As Long, ByVal crColor As Long) As Long Public Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long Public Declare Function GetDC Lib "user32" (ByVal hWnd As Long) As Long Public Declare Function ReleaseDC Lib "user32" (ByVal hWnd As Long, ByVal hDc As Long) As Long Public 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 Public Declare Function SelectObject Lib "gdi32" (ByVal hDc As Long, ByVal hObject As Long) As Long Public Declare Function SetROP2 Lib "gdi32" (ByVal hDc As Long, ByVal nDrawMode As Long) As Long #Else Public Declare Function CreatePen Lib "gdi" (ByVal nPenStyle As Integer, ByVal nWidth As Integer, ByVal crColor As Long) As Integer Public Declare Function DeleteObject Lib "gdi" (ByVal hObject As Integer) As Integer Public Declare Function GetDC Lib "user" (ByVal hWnd As Integer) As Integer Public 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 Public Declare Function ReleaseDC Lib "user" (ByVal hWnd As Integer, ByVal hDc As Integer) As Integer Public Declare Function SelectObject Lib "gdi" (ByVal hDc As Integer, ByVal hObject As Integer) As Integer Public Declare Function SetROP2 Lib "gdi" (ByVal hDc As Integer, ByVal nDrawMode As Integer) As Integer #End If