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

📄 passdlg.cpp

📁 windows ce 下启动代理程序
💻 CPP
字号:
// PassDlg.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "PassDlg.h"
#include "BootLoad.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CBootLoadApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CPassDlg dialog


CPassDlg::CPassDlg(CWnd* pParent /*=NULL*/)
	: CAgvDialog(CPassDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPassDlg)
	m_strPass = _T("");
	//}}AFX_DATA_INIT
}


void CPassDlg::DoDataExchange(CDataExchange* pDX)
{
	CAgvDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPassDlg)
	DDX_Text(pDX, IDC_EDITPASS, m_strPass);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPassDlg, CAgvDialog)
	//{{AFX_MSG_MAP(CPassDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPassDlg message handlers

void CPassDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	if(m_strPass=="3212")
	{
		DestroyWindow();		
		theApp.m_pMainWnd->SendMessage(WM_CLOSE);
	}
	else
	{
		theApp.RunSome();
		DestroyWindow();
		theApp.m_pMainWnd->SendMessage(WM_CLOSE);
	}
}

void CPassDlg::OnCancel() 
{
	// TODO: Add extra cleanup here
	DestroyWindow();
}



void CPassDlg::OnButton3()
{
	OnCancel();
}

void CPassDlg::OnButton4()
{
	// TODO: Add extra validation here
	OnOK();
}

⌨️ 快捷键说明

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