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. Setting a different font for an application

Setting a different font for an application

Scheduled Pinned Locked Moved C / C++ / MFC
help
1 Posts 1 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.
  • B Offline
    B Offline
    billb2112
    wrote on last edited by
    #1

    I'm looking for a way to set a user configurable font to my controls. I'm fine with the Windows default fonts, but our application uses a list control and is commonly displayed on an overhead projection screen and the default font is too small. I'd like to be able to provide a "Use Bold" or maybe just a standard font dialog and allow a user to select which font will be used application wide. It looks like Microsoft took out the ability to configure a default system font in Win2K and XP, so I'm not going to get to take the easy way out this time :/ One thing I've tried is to enumerate all of the controls on a dialog or window and call SetFont() but entry fields and date/time pickers will display things erroneously and the selection caret is off. I'm assuming there has to be a better way without having to owner draw every control. Any help is appreciated.

    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