|
|
CODE Private Type TEXTMETRIC
tmHeight As Long tmAscent As Long tmDescent As Long tmInternalLeading As Long tmExternalLeading As Long tmAveCharWidth As Long tmMaxCharWidth As Long tmWeight As Long tmOverhang As Long tmDigitizedAspectX As Long tmDigitizedAspectY As Long tmFirstChar As Byte tmLastChar As Byte tmDefaultChar As Byte tmBreakChar As Byte tmItalic As Byte tmUnderlined As Byte tmStruckOut As Byte tmPitchAndFamily As Byte tmCharSet As Byte End Type Private Declare PtrSafe Function GetTextMetrics Lib "gdi32" Alias "GetTextMetricsA" ( _ ByVal hDC As LongPtr, _ lpMetrics As TEXTMETRIC _ ) As Boolean NOTE: The code reflects a possible number(s) of declarations. Depending on your specific needs, you may want different syntax. For details on how to declare an API procedure, consult API article. For pre-VBA7 (pre-Access 2010) compatible syntax, there are several sites that already documents the same API in more details. ALLAPI at mentalis.org is one such resource. MSDN Reference: GetTextMetrics
|
| This page was last modified 14:19, 14 May 2011. This page has been accessed 319 times. Disclaimers |