title: How to obtain the correct physical size of the monitor?
body: <p>How can I get the size of the display in centimeters or inches?</p>
  
  <p>This code does not always works correctly:</p>
  
  <pre><code>HDC hdc = CreateDC(_T("DISPLAY"),dd.DeviceName,NULL,NULL);
  int width = GetDeviceCaps(hdc, HORZSIZE);
  int height = GetDeviceCaps(hdc, VERTSIZE);
  ReleaseDC(0, hdc)
  </code></pre>
  
  <p>Especially for multi-monitor configuration.</p>
  
  <p><strong>Update:</strong> I need to get the size just for ordinary monitors, which have a constant physical size.</p>