VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Returns the height and width in pixels of a string based on the current font characteristics of a d

Jon Mooty AKA YoungBuck  (5 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Thu 1st November 2001   Mon 8th February 2021

Returns the height and width in pixels of a string based on the current font characteristics of a device context (DC) using the

API Declarations



Private Declare Function GetTextExtentPoint32 Lib "gdi32" Alias "GetTextExtentPoint32A" (ByVal hdc As Long, ByVal lpsz As String, ByVal cbString As Long, lpSize As Size) As Long
Private Type Size
cx As Long
cy As Long
End Type


Rate Returns the height and width in pixels of a string based on the current font characteristics of a d (1(1 Vote))
Returns the height and width in pixels of a string based on the current font characteristics of a d.bas

Returns the height and width in pixels of a string based on the current font characteristics of a d Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters