⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dialogsplash.cpp

📁 以前给一个印刷厂开发的业务管理软件
💻 CPP
字号:
// DialogSplash.cpp : implementation file
//

#include "stdafx.h"
#include "DialogSplash.h"
#include "DialogLogin.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialogSplash dialog


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


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


BEGIN_MESSAGE_MAP(CDialogSplash, CDialog)
	//{{AFX_MSG_MAP(CDialogSplash)
	ON_WM_TIMER()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogSplash message handlers

void CDialogSplash::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

BOOL CDialogSplash::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	CenterWindow();

	SetTimer(10000, 1000, NULL);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDialogSplash::OnTimer(UINT nIDEvent) 
{
	// TODO: Add your message handler code here and/or call default
	KillTimer(10000);

	CDialogLogin dlg;
	dlg.m_pSysTimeSet = m_pSysTimeSet;
	dlg.m_pOperatorSet = m_pOperatorSet;
	dlg.m_pUpdatetimeSet = m_pUpdatetimeSet;
	dlg.DoModal();
	
	CDialog::OnTimer(nIDEvent);

	OnOK();
}

⌨️ 快捷键说明

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