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. Windows message for changing color scheme

Windows message for changing color scheme

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 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.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    There is a windows message to know when windows scheme has changed from Windows 7 to Windows classic ? If yes, which is ? I have tried ON_WM_SETTINGCHANGE, but this one has fired several times, not just once ...

    _ L 3 Replies Last reply
    0
    • _ _Flaviu

      There is a windows message to know when windows scheme has changed from Windows 7 to Windows classic ? If yes, which is ? I have tried ON_WM_SETTINGCHANGE, but this one has fired several times, not just once ...

      _ Offline
      _ Offline
      _Flaviu
      wrote on last edited by
      #2

      I dig into ON_WM_SETTINGCHANGE message, but I didn't found something that tell me when the color scheme has changed ... I am thinking that this message is not the one of what I am looking for ...

      1 Reply Last reply
      0
      • _ _Flaviu

        There is a windows message to know when windows scheme has changed from Windows 7 to Windows classic ? If yes, which is ? I have tried ON_WM_SETTINGCHANGE, but this one has fired several times, not just once ...

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Do you mean this: https://msdn.microsoft.com/en-us/library/82w28432.aspx[^]?

        _ 1 Reply Last reply
        0
        • L Lost User

          Do you mean this: https://msdn.microsoft.com/en-us/library/82w28432.aspx[^]?

          _ Offline
          _ Offline
          _Flaviu
          wrote on last edited by
          #4

          Yes, that one.

          1 Reply Last reply
          0
          • _ _Flaviu

            There is a windows message to know when windows scheme has changed from Windows 7 to Windows classic ? If yes, which is ? I have tried ON_WM_SETTINGCHANGE, but this one has fired several times, not just once ...

            _ Offline
            _ Offline
            _Flaviu
            wrote on last edited by
            #5

            After few trials, I ended using this code, which seem to work:

            void CMainFrame::OnSettingChange(UINT uFlags, LPCTSTR lpszSection)
            {
            CFrameWnd::OnSettingChange(uFlags, lpszSection);

            // TODO: Add your message handler code here
            
            if(SPI\_SETWORKAREA == uFlags)
            	// do the work
            

            }

            In case that anyone need it ...

            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