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. ATL / WTL / STL
  4. Stock Font Persist?

Stock Font Persist?

Scheduled Pinned Locked Moved ATL / WTL / STL
csharpc++visual-studiocomtesting
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.
  • G Offline
    G Offline
    greekgoddj
    wrote on last edited by
    #1

    Goodmorning! As the subject line suggests I am having a hard time with the persistance of my ATL ActiveX control's Font Stock Property and the selection being remembered once its made. I thought I was doing it all wrong but then to make sure I had the code right, I made a brand new project with a brande new control that had the Font stock property as a feature from the very beginning. I also told the wizard to add the background colour property for testing sake. So i compile it and then try to use it in another project....I insert it into the dialog and then right click to get the properties. I can select the background colour, and the setting remains. I click on the font property, the font window comes up with the collection of fonts..i make the selection...hit OK/apply but the font field in the properties shows up as empty...it does not actually remember the font I chose. Like I said, I thought i might be doing something wrong and therefore tried it out on a brand new control where the font property was added by Visual Studio's wizard. Is this a little "bug"? and if so...how does one exterminate/wack it. Thanks! Aristotel

    E 1 Reply Last reply
    0
    • G greekgoddj

      Goodmorning! As the subject line suggests I am having a hard time with the persistance of my ATL ActiveX control's Font Stock Property and the selection being remembered once its made. I thought I was doing it all wrong but then to make sure I had the code right, I made a brand new project with a brande new control that had the Font stock property as a feature from the very beginning. I also told the wizard to add the background colour property for testing sake. So i compile it and then try to use it in another project....I insert it into the dialog and then right click to get the properties. I can select the background colour, and the setting remains. I click on the font property, the font window comes up with the collection of fonts..i make the selection...hit OK/apply but the font field in the properties shows up as empty...it does not actually remember the font I chose. Like I said, I thought i might be doing something wrong and therefore tried it out on a brand new control where the font property was added by Visual Studio's wizard. Is this a little "bug"? and if so...how does one exterminate/wack it. Thanks! Aristotel

      E Offline
      E Offline
      E del Ayre
      wrote on last edited by
      #2

      Click me.[^] We learned how to make Stock Font Propeties work here. From get_hFont to Load and Save m_pFont.

      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