win 10 dpi 缩放
2021-06-09 08:04
标签:metrics point system 消息 参数 get 主程序 printf dpi win 10 dpi dwm 效果,影响最大的函数有 MOUSEHOOKSTRUCT *mhookstruct; //鼠标HOOK结构体 //将当前鼠标坐标点的x,y坐标作为参数向主程序窗口发送消息 HDC dc_screen = GetDC(0); //获取 屏幕 dc COLORREF color = GetPixel(dc_screen, dcX, dcY); GetSystemMetrics(SM_CXSCREEN) mouseClick(), win 10 dpi 缩放 标签:metrics point system 消息 参数 get 主程序 printf dpi 原文地址:https://www.cnblogs.com/personnel/p/10659060.html
mhookstruct = (MOUSEHOOKSTRUCT*)lParam;
POINT pt = mhookstruct->pt;
//printf("点击: %ld,%ld\n", pt.x, pt.y);