title: How to prevent application's locale changing when user changes Windows date/time format (C++, Windows native app)
body: <p>Our application is a Windows native 64 bit application developed in C++ (Visual Studio) with RogueWave's Stingray library, itself using MFC for the UI.</p>
  
  <p>In the application, dates are shown in various places (grids, dialog box controls etc.).
  As it is a complex business application, we handle the date format selection internally:
  The user is able to configure the date format that is being used and we set it programmatically via the applications global locale on startup and whenever the user changes it.</p>
  
  <p>For this we use _tsetlocale(LC_ALL, strLocalLng) and the Stingray RWLocaleSnapshot feature.</p>
  
  <p>Now what happens is when the user opens Windows 10 Date/Time settings and modifies its date format, then immediately, some of our app's dialog box controls change to view the date in the new format!
  What seems like a cool feature is difficult to handle.
  We don't want the Windows settings to interfere with the configuration the user set in the app.</p>
  
  <p>The thing is i don't even know what to look (google) for.</p>
  
  <p>What mechanism is it that affects and sets my applications locale and gets forwarded to dialog controls immediately when the user modifies Windows settings?</p>
  
  <p>And how can i prevent it?</p>