Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
789 B

  1. // StatusBr.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "evtview.h"
  5. #include "StatusBr.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CEvtStatusBar
  13. CEvtStatusBar::CEvtStatusBar()
  14. {
  15. }
  16. CEvtStatusBar::~CEvtStatusBar()
  17. {
  18. }
  19. BEGIN_MESSAGE_MAP(CEvtStatusBar, CStatusBar)
  20. //{{AFX_MSG_MAP(CEvtStatusBar)
  21. ON_UPDATE_COMMAND_UI(ID_INDICATOR_TIME, OnUpdateTime)
  22. //}}AFX_MSG_MAP
  23. END_MESSAGE_MAP()
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CEvtStatusBar message handlers
  26. void CEvtStatusBar::OnUpdateTime(CCmdUI* pCmdUI)
  27. {
  28. CTime t = CTime::GetCurrentTime () ;
  29. pCmdUI->SetText (t.Format(L"%H:%M:%S")) ;
  30. }