获取系统版本 http://dreamisx.blog.163.com/blog/static/1150048392012898257606/ http://cool.worm.blog.163.com/blog/static/64339006200911903953953/
修改文件属性
String strFileName="";
// 1 .
CFileStatus fs;
CFile::GetStatus(strFileName,fs);
fs.m_attribute = CFile::hidden; //set hidden attribute
CFile::SetStatus(strFileName,fs);
// 2.
GetFileAttributes(strFileName.c_str())
SetFileAttributes(strFile.c_str(), fileinfo.attrib);
std::wstring CDigitalClockEffector::GetUnit(bool bShow, bool bAM, int nType)
{
std::wstring wstrUnit = L"";
if (bShow)
{
switch(nType)
{
case e_time_type_hh_mm_ss:
case e_time_type_hh_mm:
wstrUnit = bAM ? L"AM" : L"PM";
break;
case e_time_type_hh_s_mm_s_ss_s:
case e_time_type_hh_s_mm_s:
wstrUnit = bAM ? L"上午" : L"下午";
break;
default:
break;
}
}
return wstrUnit;
}