Tag: DPI

Coding for High-DPI Displays in Windows

admin | win32 | 2015-02-03
Deliver crisp text and images on all Windows monitors, regardless of settings. In the first article in this two-part series on coding for high-DPI displays on the Windows desktop, I explained high-DPI configurations in Windows 8.1 and their effect on the three different kinds of applications: DPI-unaware, system-DPI aware, a... [阅读全文]
ė6,206 浏览数 6没有评论 0

获取本机内容DPI缩放比例

admin | 取词 | 2014-03-27
C++ #define WINVER 0x0600 #include <windows.h> #include <iostream> #include <WinUser.h> int main() { { SetProcessDPIAware(); HDC hdcScreen = GetDC(NULL); //获取屏幕的HDC double nScreenWidth = GetDeviceCaps(hdcScreen, LOGPIXELSX); double bb = nScreenWidth/96; ... [阅读全文]
ė2,614 浏览数 6没有评论 0

Ɣ回顶部

无觅相关文章插件,快速提升流量