摘要: 还是看代码说话。其中ParseDate()/ParseTime()/ParseDateTime最有趣了。1 void datetest()2 {3 wxDateTime now=wxDateTime::Now();4 wxString date1=now.Format();5 wxString date2=now.Format(wxT("%X"));6 wxString date3=now.Format(wxT("%x"));7 8 //下面代码只显示日期部分9 cout<<"wxDateTime now=wxDateTime::N 阅读全文
posted @ 2011-03-15 17:52 高斯山 阅读(2005) 评论(0) 推荐(0)
摘要: 代码说话,各函数功能一目了然: 1 void shelltest() 2 { 3 wxExecute(wxT("notepad.exe newfile.txt")); 4 } 5 6 void sysutils() 7 { 8 wxString output(wxT("Home dir:")); 9 output<<wxGetHomeDir();10 output<<wxT("\nOs Description:")<<wxGetOsDescription();11 output<<wxT 阅读全文
posted @ 2011-03-15 14:43 高斯山 阅读(807) 评论(0) 推荐(0)
摘要: wxString的大小写转换函数有两类,一类:Lower/Upper(),另一类:MakeLower()|LowerCase()/MakeUpper()|UpperCase()一.Lower()/Upper()。1 void convert()2 {3 wxString lowerStr=wxT("this is a lower string");4 wxString uppserStr=lowerStr.Upper();5 cout<<"lowerStr="<<lowerStr<<endl<<" 阅读全文
posted @ 2011-03-15 10:16 高斯山 阅读(779) 评论(0) 推荐(0)