CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Posts
    14

    How to use the CFont

    I am using a class CFont:

    CFont font;
    font.CreateFont(12.0,12.0/3,0,0,FW_BOLD,
    0,0,0,ANSI_CHARSET,0,0,2,DEFAULT_PITCH,"VC");

    Then,I want to change the height of the font.How can I do it?



  2. #2
    Join Date
    Mar 2000
    Location
    Bangalore,India
    Posts
    776

    Re: How to use the CFont

    Hi
    the first parameter of CreateFont() is for setting the font height. once u create a cFont object u cannot change the height of this object, u will have to create a new Cfont object with new height and use it.
    note: 1st param specifies the desired height (in logical units) of the font.

    Regards
    SKP


    Be sure to rate answers if it helped, to encourage them.

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