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 prevent a Dialog from being resized by choosen font size?

How to prevent a Dialog from being resized by choosen font size?

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
    madmax0001
    wrote on last edited by
    #1

    Hi, I have a CDialogBar derived dialog which is automatically resized by the OS when the user switches from standard size (96dpi) to 120dpi. The problem is, that only the CDialogbar is dependend from the font sizes, and all the other CToolbars have the standard size. Is is possible to prevent the dialog from being resized by the OS? Maybe by setting the fontsize permanently for the dialog to -11 ? Thanks

    T 1 Reply Last reply
    0
    • M madmax0001

      Hi, I have a CDialogBar derived dialog which is automatically resized by the OS when the user switches from standard size (96dpi) to 120dpi. The problem is, that only the CDialogbar is dependend from the font sizes, and all the other CToolbars have the standard size. Is is possible to prevent the dialog from being resized by the OS? Maybe by setting the fontsize permanently for the dialog to -11 ? Thanks

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      madmax0001 wrote:

      Is is possible to prevent the dialog from being resized by the OS? Maybe by setting the fontsize permanently for the dialog to -11 ?

      you have to associate the CFont class of Font Size 11 with all member of Dialog Text

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

      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