// DogTimeOutDlg.cpp : implementation file // #include "stdafx.h" #include "DBServer.h" #include "DogTimeOutDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // DogTimeOutDlg dialog DogTimeOutDlg::DogTimeOutDlg(CWnd* pParent /*=NULL*/) : CDialog(DogTimeOutDlg::IDD, pParent) { //{{AFX_DATA_INIT(DogTimeOutDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void DogTimeOutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(DogTimeOutDlg) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(DogTimeOutDlg, CDialog) //{{AFX_MSG_MAP(DogTimeOutDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // DogTimeOutDlg message handlers BOOL DogTimeOutDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here CString str; str.Format ("您的加密狗只能使用%d小时了, 为了避免耽误您的时间请及时与经销商联系并索要注册码.", hour); SetDlgItemText(IDC_STATIC1, (str) ); SetWindowText(("提醒")); SetDlgItemText(IDOK, ("输入注册码以后不用再提醒") ); SetDlgItemText(IDCANCEL, ("以后再说") ); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }