CString str; int i= GetSystemMetrics(SM_CMOUSEBUTTONS); //鼠标上的按钮数量,如果没有安装鼠标,则为零 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CXCURSOR);//返回以像素值为单位的标准光标的宽度 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CYCURSOR);//返回以像素值为单位的标准光标的高度 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CYFULLSCREEN);//全屏幕窗口的窗口区域的高度 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CXFULLSCREEN);//全屏幕窗口的窗口区域的宽度 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CXSCREEN);//以像素为单位屏幕宽度 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CYSCREEN);//以像素为单位屏幕高度 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_MOUSEPRESENT);//是否安装了鼠标 //如果为TRUE或不为0的值则安装了鼠标,否则没有安装 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_IMMENABLED); //是否启用了输入法 //如果启用了输入法管理器/输入法编辑器功能,则非零;否则为 0 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_MOUSEWHEELPRESENT);//是否安装了带滚轮鼠标 //如果为TRUE或不为0的值则安装了滚轮鼠标,否则没有安装。(Windows NT only) str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_SWAPBUTTON);//鼠标左右键是否交换 //如果为TRUE或不为0的值则鼠标左右键交换,否则没有 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CMONITORS);//显示器数量 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CXICON);//图标的默认宽度(以像素为单位) //LoadIcon函数只能加载具有SM_CXICON和SM_CYICON指定维度的图标 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CYICON);//图标的默认高度(以像素为单位) str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CXSMICON);//建议的小图标宽度(以像素为单位) //小图标通常出现在窗口标题和小图标视图中 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_CYSMICON);//建议的小图标高度(以像素为单位) //小图标通常出现在窗口标题和小图标视图中 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); i = GetSystemMetrics(SM_STARTER);// //如果当前操作系统是Windows 7 Starter Edition,Windows Vista Starter或Windows XP Starter Edition,则为非零; 否则,0 str.Format(_T("i=%d\r\n"), i); ::OutputDebugString(str); //其它:https://www.cnblogs.com/rosesmall/p/15066121.html