Add DPI Aware replacement of GetSystemMetrics

Use GetSystemMetricsForDpi when this function is available and the DPI is
known. Otherwise keep using GetSystemMetrics.
This commit is contained in:
Maarten Bent
2018-07-22 14:03:42 +02:00
parent 914e6f99f4
commit 04b99d54bd
2 changed files with 61 additions and 0 deletions

View File

@@ -300,6 +300,7 @@ extern HICON wxBitmapToHICON(const wxBitmap& bmp);
extern
HCURSOR wxBitmapToHCURSOR(const wxBitmap& bmp, int hotSpotX, int hotSpotY);
extern int wxGetSystemMetrics(int nIndex, const wxWindow* win);
#if wxUSE_OWNER_DRAWN