Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Centering Blted Text
#1
In my journey to center text, I ran across a gdi32 api call dubbed GetTextExtentPoint which measures dimensions of specified text in hdc. The only problem is, I get a "User-Defined Type Not Defined" when adding the function:
Code:
Public Declare Function GetTextExtentPoint Lib "gdi32" Alias "GetTextExtentPointA" (ByVal hDC As Integer, ByVal lpszString As String, ByVal cbString As Integer, ByRef lpSize As Size) As Integer
Can't figure out why it won't recognise it. Help!!

Even better, if you have a operable center solution, pm me Tongue

Thanks in advance!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)