//获取时间
CTime ct=CTime::GetCurrentTime();
CString t;
t.Format("%d:%d:%d",ct.GetHour(),ct.GetMinute(),ct.GetSecond());
//显示时间
SetDlgItemText(IDC_time,t);
//设置为顶层
::SetWindowPos(theApp.GetMainWnd()->GetSafeHwnd(),HWND_TOPMOST,0,0,200,100,SWP_SHOWWINDOW);