Attribute VB_Name = "WinAPI" '***************************************************************************** '* '* Copyright (c) 1999, KL GROUP INC. All Rights Reserved. '* http://www.klgroup.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 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 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 CreatePen Lib "gdi32" (ByVal nPenStyle As Long, ByVal nWidth As Long, ByVal crColor As Long) As Long Public Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long Public Declare Function GetStockObject Lib "gdi32" (ByVal nIndex As Long) As Long 'Pen Styles Public Const PS_SOLID = 0 'Stock Logical Objects Public Const WHITE_BRUSH = 0 Public Const LTGRAY_BRUSH = 1 Public Const GRAY_BRUSH = 2 Public Const DKGRAY_BRUSH = 3 Public Const BLACK_BRUSH = 4 Public Const NULL_BRUSH = 5 Public Const HOLLOW_BRUSH = NULL_BRUSH Public Const WHITE_PEN = 6 Public Const BLACK_PEN = 7 Public Const NULL_PEN = 8 Public Const OEM_FIXED_FONT = 10 Public Const ANSI_FIXED_FONT = 11 Public Const ANSI_VAR_FONT = 12 Public Const SYSTEM_FONT = 13 Public Const DEVICE_DEFAULT_FONT = 14 Public Const DEFAULT_PALETTE = 15 Public Const SYSTEM_FIXED_FONT = 16 Public Const STOCK_LAST = 16