Thread: How to use GetCharWidth??

  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