C++: Missing methode GetSystemMetricsForDpi() for High resolution screen

651 views Asked by At

I use Visual Studio 2015 and information from

https://learn.microsoft.com/nl-nl/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows

The compiler don't recognize GetSystemMetricsForDpi()

#include "winuser.h"
[...]
void CSizingControlBar::LoadState(LPCTSTR lpszProfileName)
{
[...]
          pInfo->m_pointPos.y +=  ::GetSystemMetricsForDpi(SM_CYSMCAPTION) + 1;
[...]
}

Errors:

Error C3861 'GetSystemMetricsForDpi': identifier not found

Error C2039 'GetSystemMetricsForDpi': is not a member of '`global namespace''

Can anyone help me to solve this?

0

There are 0 answers