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. Dettecting Change to windows appearance / XP styles

Dettecting Change to windows appearance / XP styles

Scheduled Pinned Locked Moved C / C++ / MFC
csharpwpftutorialcode-review
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.
  • T Offline
    T Offline
    Tristan Rhodes
    wrote on last edited by
    #1

    Afternoon Gents (and ladies) I'm writing an app that uses some information from windows settings to set layout metrics. I've retrieved all the metrics information successfuly, but i'm not sure how to detect when it's changed. I'd like to have the settings fixed for my object and changed only when the windows appearance is modified, as currently they are tested and updated on every redraw action. I'm making this component in C#, but i'm looking for the system event to marshal into my program as it will dramatically improve efficiency. Cheers Cata

    Y 1 Reply Last reply
    0
    • T Tristan Rhodes

      Afternoon Gents (and ladies) I'm writing an app that uses some information from windows settings to set layout metrics. I've retrieved all the metrics information successfuly, but i'm not sure how to detect when it's changed. I'd like to have the settings fixed for my object and changed only when the windows appearance is modified, as currently they are tested and updated on every redraw action. I'm making this component in C#, but i'm looking for the system event to marshal into my program as it will dramatically improve efficiency. Cheers Cata

      Y Offline
      Y Offline
      Yves Tkaczyk
      wrote on last edited by
      #2

      You should be fine if you handle the WM_SYSCOLORCHANGE message. You could then refresh your color cache. In C#, you have to handle the SystemColorsChanged for the form or control. Yves

      T 1 Reply Last reply
      0
      • Y Yves Tkaczyk

        You should be fine if you handle the WM_SYSCOLORCHANGE message. You could then refresh your color cache. In C#, you have to handle the SystemColorsChanged for the form or control. Yves

        T Offline
        T Offline
        Tristan Rhodes
        wrote on last edited by
        #3

        Thanks, but it's not just the colour. It's the text size, border sizes, and whether themes are enabled / disabled in XP. If a user changes these without changing the colour, then it won't update properly. I'm sure I read about a system metrics change method somewhere, but it was in the windows SDK. Any other thoughts? Cata

        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