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. Application Theme changes automatically

Application Theme changes automatically

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
3 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.
  • H Offline
    H Offline
    Harsh Shankar
    wrote on last edited by
    #1

    Hi guys, Looking for some help... In my application using VS2008 (MFC 9.0) + SP1, i encountered an error and i felt that it is of the MFC/Framework. I am giving a very simple scenerio, and i hope amy body may reproduce it easyly. Follow these steps: - 1. Create a new MFC Application Project. 2. The type i choose is MultiDoc Application with Doc/View Support and Office Project Style and Ribbon Menu Here my View is derived from CScrollView. Now i Run the Application and changed the theme, say to Silver and now i hibernated the PC. After Starting the PC i got that the application is in the default theme (BLUE). However as i checked the selected style in the menu, its still the Silver. I an expecting any boddy will help me soon.


    Regards Harsh

    HARSH Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.

    E 1 Reply Last reply
    0
    • H Harsh Shankar

      Hi guys, Looking for some help... In my application using VS2008 (MFC 9.0) + SP1, i encountered an error and i felt that it is of the MFC/Framework. I am giving a very simple scenerio, and i hope amy body may reproduce it easyly. Follow these steps: - 1. Create a new MFC Application Project. 2. The type i choose is MultiDoc Application with Doc/View Support and Office Project Style and Ribbon Menu Here my View is derived from CScrollView. Now i Run the Application and changed the theme, say to Silver and now i hibernated the PC. After Starting the PC i got that the application is in the default theme (BLUE). However as i checked the selected style in the menu, its still the Silver. I an expecting any boddy will help me soon.


      Regards Harsh

      HARSH Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      The CMFCVisualManagerOffice2007 reset any style to its default const CMFCVisualManagerOffice2007::Style c_StyleDefault = CMFCVisualManagerOffice2007::Office2007_LunaBlue; value after the restart... It would be not the case when you would set your own (derivated) VisualManager with the overwritten function virtual void OnUpdateSystemColors() :)

      H 1 Reply Last reply
      0
      • E Eugen Podsypalnikov

        The CMFCVisualManagerOffice2007 reset any style to its default const CMFCVisualManagerOffice2007::Style c_StyleDefault = CMFCVisualManagerOffice2007::Office2007_LunaBlue; value after the restart... It would be not the case when you would set your own (derivated) VisualManager with the overwritten function virtual void OnUpdateSystemColors() :)

        H Offline
        H Offline
        Harsh Shankar
        wrote on last edited by
        #3

        Thanks Eugen, I'll try n let you know..

        HARSH Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.

        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