?? print3.cpp
字號:
// Print3.cpp : implementation file
//
#include "stdafx.h"
#include "ATM.h"
#include "Print3.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPrint3 dialog
CPrint3::CPrint3(CWnd* pParent /*=NULL*/)
: CDialog(CPrint3::IDD, pParent)
{
//{{AFX_DATA_INIT(CPrint3)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CPrint3::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPrint3)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
SetTimer(0,15000,NULL);
}
BEGIN_MESSAGE_MAP(CPrint3, CDialog)
//{{AFX_MSG_MAP(CPrint3)
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPrint3 message handlers
void CPrint3::OnCancel()
{
// TODO: Add extra cleanup here
CContinue continuedlg;
continuedlg.DoModal();
CDialog::OnCancel();
}
void CPrint3::OnOK()
{
// TODO: Add extra validation here
CContinue continuedlg;
continuedlg.DoModal();
CDialog::OnOK();
}
BOOL CPrint3::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
switch(pMsg->message)
{
case WM_KEYUP:SetTimer(0,15000,NULL);break;
case WM_KEYDOWN:KillTimer(0);break;
}
return CDialog::PreTranslateMessage(pMsg);
}
void CPrint3::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
Beep(1000,500);
KillTimer(0);
CAlarm alarmdlg;
alarmdlg.DoModal();
CDialog::OnTimer(nIDEvent);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -