DogTimeOutDlg.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // DogTimeOutDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "DBServer.h"
  5. #include "DogTimeOutDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // DogTimeOutDlg dialog
  13. DogTimeOutDlg::DogTimeOutDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(DogTimeOutDlg::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(DogTimeOutDlg)
  17. // NOTE: the ClassWizard will add member initialization here
  18. //}}AFX_DATA_INIT
  19. }
  20. void DogTimeOutDlg::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(DogTimeOutDlg)
  24. // NOTE: the ClassWizard will add DDX and DDV calls here
  25. //}}AFX_DATA_MAP
  26. }
  27. BEGIN_MESSAGE_MAP(DogTimeOutDlg, CDialog)
  28. //{{AFX_MSG_MAP(DogTimeOutDlg)
  29. //}}AFX_MSG_MAP
  30. END_MESSAGE_MAP()
  31. /////////////////////////////////////////////////////////////////////////////
  32. // DogTimeOutDlg message handlers
  33. BOOL DogTimeOutDlg::OnInitDialog()
  34. {
  35. CDialog::OnInitDialog();
  36. // TODO: Add extra initialization here
  37. CString str;
  38. str.Format ("您的加密狗只能使用%d小时了, 为了避免耽误您的时间请及时与经销商联系并索要注册码.", hour);
  39. SetDlgItemText(IDC_STATIC1, (str) );
  40. SetWindowText(("提醒"));
  41. SetDlgItemText(IDOK, ("输入注册码以后不用再提醒") );
  42. SetDlgItemText(IDCANCEL, ("以后再说") );
  43. return TRUE; // return TRUE unless you set the focus to a control
  44. // EXCEPTION: OCX Property Pages should return FALSE
  45. }