摘要:
一.如何获得显示属性使用GetDeviceCaps函数获取分辨率相关信息View Code voidCDemoDlg::OnTest(){CListBox*pListBox=(CListBox*)GetDlgItem(IDC_LIST);pListBox->ResetContent();//创建显示设备上下文HDChdc=CreateDC(_T("display"),NULL,NULL,NULL);//颜色深度intnBitsPerPixel=GetDeviceCaps(hdc,BITSPIXEL);//水平分辨率intnWidth=GetDeviceCaps(hdc 阅读全文
随笔档案-2011年4月2日
Win32 设备管理(1)
2011-04-02 13:56 by Clingingboy, 585 阅读, 收藏,
摘要:
一.获得物理内存参数使用GlobalMemoryStatus函数View Code voidCDemoDlg::OnTest(){CListBox*pListBox=(CListBox*)GetDlgItem(IDC_LIST);pListBox->ResetContent();//获得物理内存参数MEMORYSTATUSMemoryStatus;GlobalMemoryStatus(&MemoryStatus);CStringstrText=_T("");strText.Format(_T("物理内存使用率:%d%s"),MemorySt 阅读全文
浙公网安备 33010602011771号