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... [阅读全文]
ė5,885 浏览数 6没有评论 0


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,354 浏览数 6没有评论 0