waitdlg.cpp

来自「HMAC即带密钥的HASH函数」· C++ 代码 · 共 80 行

CPP
80
字号
// WaitDlg.cpp : implementation file
// Programmed by Gamsn 2005.10.22

#include "stdafx.h"
#include "VeriFile.h"
#include "WaitDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CWaitDlg dialog


CWaitDlg::CWaitDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CWaitDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CWaitDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CWaitDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CWaitDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CWaitDlg, CDialog)
	//{{AFX_MSG_MAP(CWaitDlg)
	ON_WM_TIMER()
	ON_WM_LBUTTONDOWN()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CWaitDlg message handlers

void CWaitDlg::OnTimer(UINT nIDEvent) 
{
	if(m_nCount%4==0) GetDlgItem(IDC_STATIC_WAIT)->SetWindowText(" \\校验码生成中...");
	else if(m_nCount%4==1) GetDlgItem(IDC_STATIC_WAIT)->SetWindowText(" |校验码生成中...");
	else if(m_nCount%4==2) GetDlgItem(IDC_STATIC_WAIT)->SetWindowText(" /校验码生成中...");
	else if(m_nCount%4==3) GetDlgItem(IDC_STATIC_WAIT)->SetWindowText(" -校验码生成中...");
	m_nCount++;	
	CDialog::OnTimer(nIDEvent);
}

BOOL CWaitDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	m_nCount=0;
	SetTimer(0,100,NULL);	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CWaitDlg::OnOK() 
{
//	CDialog::OnOK();
}

void CWaitDlg::OnCancel() 
{
//CDialog::OnCancel();
}

void CWaitDlg::OnLButtonDown(UINT nFlags, CPoint point) 
{
	CDialog::OnLButtonDown(nFlags, point);
	PostMessage(WM_NCLBUTTONDOWN,HTCAPTION,MAKELPARAM(point.x,point.y));
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?