VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Determine if a computer is using large or small fonts

Anonymous  (267 Submissions)   Windows System Services   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Tue 2nd February 1999   Mon 8th February 2021

Determine if a computer is using large or small fonts

API Declarations


Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetTextMetrics Lib "gdi32" Alias "GetTextMetricsA" (ByVal hdc As Long, lpMetrics As TEXTMETRIC) As Long
Private Declare Function SetMapMode Lib "gdi32" (ByVal hdc As Long, ByVal nMapMode As Long) As Long
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long
Private Const MM_TEXT = 1
Private 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
tmUnderlined 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

Rate Determine if a computer is using large or small fonts (3(3 Vote))
Determine if a computer is using large or small fonts.bas

Determine if a computer is using large or small fonts Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters