12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #include "stdafx.h"
- #include "uphonebox.h"
- #include "YesNoDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- YesNoDlg::YesNoDlg(CWnd* pParent )
- : CDialog(YesNoDlg::IDD, pParent)
- {
-
-
-
- }
- void YesNoDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
-
-
-
- }
- BEGIN_MESSAGE_MAP(YesNoDlg, CDialog)
-
- ON_WM_TIMER()
-
- END_MESSAGE_MAP()
- BOOL YesNoDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- m_timer = 0;
- SetTimer(1, 1000, NULL);
- return TRUE;
-
- }
- void YesNoDlg::OnTimer(UINT nIDEvent)
- {
-
- m_timer++;
- CString str;
- str.Format("·ñ(%d)", 60 - m_timer);
- GetDlgItem(IDCANCEL)->SetWindowText(str);
- if (m_timer >= 60)
- {
- CDialog::OnCancel();
- }
- }
|