home *** CD-ROM | disk | FTP | other *** search
- ' Copy these statements into your GLOBAL file
-
- DefInt A-Z
- Global Const False = 0
- Global Const True = -1
-
- ' Structure used by GetTextMetrics as declared in the SDK
- Type TextMetric
- tmHeight As Integer
- tmAscent As Integer
- tmDescent As Integer
- tmInternalLeading As Integer
- tmExternalLeading As Integer
- tmAveCharWidth As Integer
- tmMaxCharWidth As Integer
- tmWeight As Integer
- tmItalic As String * 1
- tmUnderLine As String * 1
- tmStruckOut As String * 1
- tmFirstChar As String * 1
- tmLastChar As String * 1
- tmDefaultChar As String * 1
- tmBreakChar As String * 1
- tmPitchAndFamily As String * 1
- tmCharSet As String * 1
- tmOverhang As Integer
- tmDigitizedAspectX As Integer
- tmDigitizedAspectY As Integer
- End Type
-
- ' Used to determine if printing should be ABORTED
- Global pABORT As Integer
-
- ' Misc values
- Global Const MODELESS = 0
- Global DocName As String
-
- ' Constants used by GetDeviceCaps ( pixel counts of the device )
- Global Const VERTRES = 10
- Global Const HORZRES = 8 ' Windows SDK values
-
-
- ' Windows API Function Declarations
- Declare Function GetDeviceCaps Lib "Gdi" (ByVal hdc, ByVal nIndex)
- Declare Function GetTextMetrics Lib "Gdi" (ByVal hdc, LPTEXTMETRIC As TextMetric)
- Declare Function SetActiveWindow Lib "user" (ByVal hdc)
-
-