Results 1 to 4 of 4

Thread: Get The Window Font

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Resolved Get The Window Font

    How to get the font of a window at runtime?
    Last edited by wey97; Nov 10th, 2004 at 10:29 AM.

  2. #2
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396
    GetTextMetrics();

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276
    Yes, but then I need an HFONT to use and you can't use
    CreateFont(...) with a TEXTMETRIC because you don't have the
    typeface name.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The font of a window? Does a window have a font?

    Some controls have fonts, use the WM_GETFONT message.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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