title: How do you scale the title bar on a DPI aware win application?
body: <p>I am making my app dpi-aware per monitor by setting <code>&lt;dpiAware&gt;True/PM&lt;/dpiAware&gt;</code> in the manifest file. I can verify with process explorer that this is indeed working or by calling GetProcessDpiAwareness. </p>
  
  <p>This is all working fine and I can scale anything in the client area fine in my code. However, my only problem is that if I drag my app from a system-dpi monitor to a non-system dpi monitor, the title bar and any system menu would either become too big or too small. This isn't the case for most built-in apps (e.g. calc, edge browser, etc..) so there must be away to scale it properly. Does anyone how the devs at MS did this? </p>
  
  <p>The screenshot below should explain my problem better. Also notice, that the padding between the close, min, and max button is different when it's scaled (96dpi).</p>
  
  <p><img src="https://i.imgur.com/YzWht8U.png" alt="Screenshot"></p>
  
  <p><a href="https://dl.dropboxusercontent.com/u/3209117/DpiAwareness.zip">Sample app</a> I'm attaching a very simple app that is per-monitor dpi aware.</p>