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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to Change Font

How to Change Font

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
2 Posts 2 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
    Max
    wrote on last edited by
    #1

    My project is Dialog base and I want to change "Font" of all control on this dialog. What's the function can support this issue?

    N 1 Reply Last reply
    0
    • M Max

      My project is Dialog base and I want to change "Font" of all control on this dialog. What's the function can support this issue?

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Max++ wrote:

      My project is Dialog base and I want to change "Font" of all control on this dialog.

      For dynamically changing... Try using WM_SETFONT with SendMessageToDescendants. A demo here... http://nibuthomas.wordpress.com/2007/12/06/changing-font-of-all-child-controls-at-one-go/[^] For a static changing once, change it from the resource editor, goto dialog properties, there you have a button for selecting font. Another option for doing this once... http://nibuthomas.wordpress.com/2007/06/28/create-a-dialog-from-its-template/[^]

      Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

      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