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