Copying HFONT

This is a discussion on Copying HFONT within the Windows Programming forums, part of the Platform Specific Boards category; I would like to create a bold version of the DEFAULT_GUI_FONT, however, how do I get the information of the ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    19

    Copying HFONT

    I would like to create a bold version of the DEFAULT_GUI_FONT, however, how do I get the information of the DEFAULT_GUI_FONT to create the new font to begin with?

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    See Tonto's post.
    In short:
    GetStockObject
    GetObject
    CreateFontIndirect

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    19
    Ahh, GetObject! That's all I needed. I know where to go from that.
    Thanks man.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. copying file from one user directory to another
    By Bargi in forum Linux Programming
    Replies: 6
    Last Post: 05-17-2009, 05:09 PM
  2. Copying Files
    By ch4 in forum C Programming
    Replies: 8
    Last Post: 02-14-2009, 04:15 PM
  3. Writing a HFONT to file.
    By switchcase in forum Windows Programming
    Replies: 6
    Last Post: 10-12-2007, 10:42 PM
  4. Copying a whole directory and its content
    By Enira in forum C Programming
    Replies: 4
    Last Post: 03-12-2006, 02:13 PM
  5. Debug assertion failed
    By Bajanine in forum Windows Programming
    Replies: 4
    Last Post: 10-17-2002, 05:34 PM

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