Chaning the Font

This is a discussion on Chaning the Font within the Windows Programming forums, part of the Platform Specific Boards category; Hi everyone, Im having a problem with a dialog box. what i want to do it make the font either ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    215

    Chaning the Font

    Hi everyone, Im having a problem with a dialog box. what i want to do it make the font either bold or italics or both, but i dont know how to do that. Heres the code that i have.

    Code:
    FONT 8, "MS Sans Serif"

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Provided you're setting the FONT resource definition statement within a DIALOGEX resource definition statement, then
    Code:
    /*FONT pointsize,typeface,weight,italic,charset*/
    FONT 8,"MS Sans Serif",700,1
    should give you a bold and italic font of that size and typeface.

    See also: Resource-Definition Statements.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    215
    Thanks Ken. :-)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 01:23 AM
  2. problem with my font manager
    By hannibar in forum C Programming
    Replies: 1
    Last Post: 03-07-2006, 08:03 AM
  3. destroywindow() problem
    By algi in forum Windows Programming
    Replies: 6
    Last Post: 03-27-2005, 11:40 PM
  4. button in function
    By algi in forum Windows Programming
    Replies: 1
    Last Post: 03-21-2005, 11:12 PM
  5. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM

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