The GetDpiForWindow() Win32 API was introduced in User32.dll with
Windows 10. Since we have a fallback case when this API is not present,
avoid popping up the wxWidgets warning. Furthermore, performance was
improved by introducing a flag to prevent keep looking for
GetDpiForWindow() on each call.