CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Text's size

  1. #1
    Join Date
    May 1999
    Posts
    1

    Text's size

    I'm looking how to calculate the size of a text in Pixels under VC++ 1.52 because the functions GetTextExtentExPoint( ... ) and
    GetTextExtentExPoint32( ... ) don't match. I try with the variables tmAveCharWidth or tmMaxCharWidth of TEXTMETRIC but it's give me only a approximation.

    Please help me

    Thanks


  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: Text's size

    In VC++ 1.52, it's called just GetTextExtent(). It works the same as GetTextExtentPoint32().

    I ought to point out that if you had used the MFC version of the function, it is called GetTextExtent() in both compilers. There are some advantages to MFC!



    --
    Jason Teagle
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured