Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Changing font for a static text

Changing font for a static text

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moobob
    wrote on last edited by
    #1

    I have a dialog that uses the 8 point Sans Sarif font. I want to make a static text control have a larger & bold font. How do I change the font for this one control on my dialog? Thanks in advance, Bob

    N T 2 Replies Last reply
    0
    • M moobob

      I have a dialog that uses the 8 point Sans Sarif font. I want to make a static text control have a larger & bold font. How do I change the font for this one control on my dialog? Thanks in advance, Bob

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      SetFont(...) Nish


      Check out last week's Code Project posting stats presentation from :- http://www.busterboy.org/codeproject/ Feel free to make your comments.

      1 Reply Last reply
      0
      • M moobob

        I have a dialog that uses the 8 point Sans Sarif font. I want to make a static text control have a larger & bold font. How do I change the font for this one control on my dialog? Thanks in advance, Bob

        T Offline
        T Offline
        Tom Archer
        wrote on last edited by
        #3

        In this thread, I list a complete code snippet on cycyling through all controls on an edit control and setting their fonts. You can easily modify this to set all the static controls or just a single static control. Let me know if you need any help with either. Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

        M 1 Reply Last reply
        0
        • T Tom Archer

          In this thread, I list a complete code snippet on cycyling through all controls on an edit control and setting their fonts. You can easily modify this to set all the static controls or just a single static control. Let me know if you need any help with either. Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

          M Offline
          M Offline
          moobob
          wrote on last edited by
          #4

          Thanks Tom, just what I needed!

          T 1 Reply Last reply
          0
          • M moobob

            Thanks Tom, just what I needed!

            T Offline
            T Offline
            Tom Archer
            wrote on last edited by
            #5

            Glad I could help :) Cheers, Tom Archer Author, Inside C# A total abstainer is one who abstains from everything but abstention, and especially from inactivity in the affairs of others.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups