www.pudn.com > cygl.rar > Begin.cpp


// Begin.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "CYGLXT.h" 
#include "Begin.h" 
#include "LoginDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CBegin dialog 
 
 
CBegin::CBegin(CWnd* pParent /*=NULL*/) 
	: CDialog(CBegin::IDD, pParent) 
{ 
	m_hIcon=AfxGetApp()->LoadIcon(IDI_ICON1); 
	//{{AFX_DATA_INIT(CBegin) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CBegin::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CBegin) 
		// NOTE: the ClassWizard will add DDX and DDV calls here 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CBegin, CDialog) 
	//{{AFX_MSG_MAP(CBegin) 
	ON_WM_TIMER() 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CBegin message handlers 
 
 
 
 
void CBegin::OnTimer(UINT nIDEvent)  
{ 
	CDialog::OnTimer(nIDEvent); 
	// TODO: Add your message handler code here and/or call default 
	this->KillTimer(1); 
	this->OnCancel(); 
	 
 
	 
} 
BOOL CBegin::OnInitDialog()  
{ 
	CDialog::OnInitDialog(); 
	SetIcon(m_hIcon, TRUE);	 
	SetIcon(m_hIcon, FALSE); 
	this->SetTimer(1,2300,NULL); 
	// TODO: Add extra initialization here 
	 
	return TRUE;  // return TRUE unless you set the focus to a control 
	              // EXCEPTION: OCX Property Pages should return FALSE 
}