SystemInfoDLG.rar

  • RACHIDOVV
    了解作者
  • Visual C++
    开发工具
  • 1KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 2
    下载次数
  • 2009-11-23 21:36
    上传日期
The colors features based on overall histogram neglecting images’ spacial information may be imprecise in image retrieval, since different image may has same histogram. Two color features with special information based on image fixed segmentation is introduced.
SystemInfoDLG.rar
  • SystemInfoDLG.cpp
    3.8KB
内容介绍
// SystemInfoDLG.cpp : implementation file // #include "stdafx.h" #include "NC_Client.h" #include "SystemInfoDLG.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSystemInfoDLG dialog CSystemInfoDLG::CSystemInfoDLG(CWnd* pParent /*=NULL*/) : CDialog(CSystemInfoDLG::IDD, pParent) { //{{AFX_DATA_INIT(CSystemInfoDLG) m_strVersion = _T(""); m_strWinName = _T(""); m_nAvialPhyMem = 0; m_nAvialVMem = 0; m_nTotalPM = 0; m_nTotalVM = 0; m_strCpuType = _T(""); m_nCpuSpeed = 0; m_nFreeDiskSpace = 0; m_strTotalDiskSpace = _T(""); //}}AFX_DATA_INIT } void CSystemInfoDLG::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CSystemInfoDLG) DDX_Control(pDX, IDOK, m_ok); DDX_Text(pDX, IDC_WINVERSION, m_strVersion); DDX_Text(pDX, IDC_WINNAME, m_strWinName); DDX_Text(pDX, IDC_PHYSICMEM_EDIT, m_nAvialPhyMem); DDX_Text(pDX, IDC_VIRTUALMEM_EDIT, m_nAvialVMem); DDX_Text(pDX, IDC_TOTALPM, m_nTotalPM); DDX_Text(pDX, IDC_TOTALVM, m_nTotalVM); DDX_Text(pDX, IDC_CPUTYPE, m_strCpuType); DDX_Text(pDX, IDC_CPUSPEED, m_nCpuSpeed); DDX_Text(pDX, IDC_DISKFREE_EDIT, m_nFreeDiskSpace); DDX_Text(pDX, IDC_TOTALDISKSPACE_EDIT, m_strTotalDiskSpace); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CSystemInfoDLG, CDialog) //{{AFX_MSG_MAP(CSystemInfoDLG) ON_WM_TIMER() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CSystemInfoDLG message handlers BOOL CSystemInfoDLG::OnInitDialog() { CDialog::OnInitDialog(); //使用sysinfo类 LPSYSINFO siSysInfo; CSystemInfo m_clsSysInfo; siSysInfo = m_clsSysInfo.GetSysInfo(); ASSERT(siSysInfo); m_strVersion = siSysInfo->szWindowsVersion; m_strWinName = siSysInfo->szWindowsType; m_nTotalPM = siSysInfo->szPhysicMem / 1024; m_nTotalVM = siSysInfo->szTotalVirtualMem / 1024; m_nAvialPhyMem = siSysInfo->szNoUsePhysicMem / 1024; m_nAvialVMem = siSysInfo->szAvailVirtualMem / 1024; m_strTotalDiskSpace.Format("%dGB", siSysInfo->szTotalDiskSpace); m_nFreeDiskSpace = siSysInfo->szFreeDiskSpace; //得到CPU型号 LONG result; HKEY hKey; TCHAR vendorData [64]; DWORD data; DWORD dataSize; result = ::RegOpenKeyEx (HKEY_LOCAL_MACHINE, "Hardware\\Description\\System\\CentralProcessor\\0", 0, KEY_QUERY_VALUE, &hKey); if (result == ERROR_SUCCESS) { result = ::RegQueryValueEx (hKey, _T("~MHz"), NULL, NULL, (LPBYTE)&data, &dataSize); m_nCpuSpeed = data; dataSize = sizeof(vendorData); result = ::RegQueryValueEx (hKey, _T("VendorIdentifier"), NULL, NULL, (LPBYTE)vendorData, &dataSize); m_strCpuType.Format ("%s", vendorData); } //关闭主键 RegCloseKey (hKey); //更新数据 UpdateData(FALSE); SetTimer(1, 500, NULL); // return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } //OnTime void CSystemInfoDLG::OnTimer(UINT nIDEvent) { switch(nIDEvent) { case 1: { CSystemInfo m_clsSysInfo; LPSYSINFO siSysInfo; siSysInfo = m_clsSysInfo.GetSysInfo(); ASSERT(siSysInfo); m_strVersion = siSysInfo->szWindowsVersion; m_strWinName = siSysInfo->szWindowsType; m_nTotalPM = siSysInfo->szPhysicMem / 1024; m_nTotalVM = siSysInfo->szTotalVirtualMem / 1024; m_nAvialPhyMem = siSysInfo->szNoUsePhysicMem / 1024; m_nAvialVMem = siSysInfo->szAvailVirtualMem / 1024; m_strTotalDiskSpace.Format("%dGB", siSysInfo->szTotalDiskSpace); m_nFreeDiskSpace = siSysInfo->szFreeDiskSpace; UpdateData(FALSE); } break; } // CDialog::OnTimer(nIDEvent); }
评论
    相关推荐
    • The-moment-the-image-characteristics.rar
      图像的矩特征,有示例图片,可运行The moment the image characteristics
    • IMAGE-COMPRESSION.rar
      this is the code for image compression using Dct
    • color-image-histogram.zip
      this is the histogram for color image
    • imageviewer.zip
      image viewer INTO the jsp. which is also in java projects.
    • 0522_ImagePicker.zip
      It is Image Picker. Ok here is the code that I wrote to display the ... here is the complete code of image pickercontrol try too find solu.
    • Image_Processing_Tutorial.zip
      Image analysis combines techniques that compute statistics and measurements based on the gray-level intensities of the image pixels. You can use the image analysis functions to determine whether the ...
    • IMAGE-PROCESSING-(2).zip
      Image processing is the processing and display of images Improving the visual appearance of images to a human observer, including their printing and transmission Preparing images for the measurement...
    • RotateImage
      最新的rotateimage图像处理组件,实现图片以中心/非中心 作为旋转焦点进行任意角度的旋转 ...a component similar to TImage with the ability to show the image rotated at an arbitrary angle.
    • 实现截图Image功能
      It provides a way to set an image in XML and programmatically, and displays a resizable crop window on top of the image. Calling the method getCroppedImage() will then return the Bitmap marked by the...