I use Visual Studio 2015 and information from
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?