How to use GetCharWidth??

This is a discussion on How to use GetCharWidth?? within the Windows Programming forums, part of the Platform Specific Boards category; How in the world is this function used...I tried GetCharWidth (&ch), and GetCharWidth(ch), but of cousre none work.....It seems like ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    162

    How to use GetCharWidth??

    How in the world is this function used...I tried

    GetCharWidth (&ch), and GetCharWidth(ch), but of cousre none work.....It seems like there are more parameters, but what are they??

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    GetCharWidth is obsolete; use GetCharWidth32 instead.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    You use it to read in char width info for a range of chars....
    something like....

    bool GetCharWidth( HDC,int first,int last,int* bufferforwidths)
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    162
    Still don't get it...What if I only wanted to get the size of one character?

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21