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

📄 screenppcview.cpp

📁 实现pc机和安装无线CF卡的手持设备之间的通信的程序源代码
💻 CPP
字号:
// ScreenPPCView.cpp : implementation of the CScreenPPCView class
//
#include "stdafx.h"


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

/////////////////////////////////////////////////////////////////////////////
// CScreenPPCView

IMPLEMENT_DYNCREATE(CScreenPPCView, CFormView)

BEGIN_MESSAGE_MAP(CScreenPPCView, CFormView)
	//{{AFX_MSG_MAP(CScreenPPCView)
	ON_BN_CLICKED(IDC_BUTTON1, OnLogin)
	ON_WM_TIMER()
	ON_BN_CLICKED(IDC_BUTTON2, OnExit)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CScreenPPCView construction/destruction

CScreenPPCView::CScreenPPCView()
	: CFormView(CScreenPPCView::IDD)
{
	//{{AFX_DATA_INIT(CScreenPPCView)
	m_csHostName = _T("");
	m_csPassword = _T("");
	m_csUsername = _T("");
	//}}AFX_DATA_INIT
	// TODO: add construction code here
}

CScreenPPCView::~CScreenPPCView()
{
}

void CScreenPPCView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CScreenPPCView)
	DDX_Text(pDX, IDC_HOSTNAME_EDIT, m_csHostName);
	DDX_Text(pDX, IDC_PASSWORD_EDIT, m_csPassword);
	DDX_Text(pDX, IDC_USERNAME_EDIT, m_csUsername);
	//}}AFX_DATA_MAP
}

BOOL CScreenPPCView::PreCreateWindow(CREATESTRUCT& cs)
{
	return CFormView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CScreenPPCView diagnostics

#ifdef _DEBUG
void CScreenPPCView::AssertValid() const
{
	CFormView::AssertValid();
}

void CScreenPPCView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}

CScreenPPCDoc* CScreenPPCView::GetDocument() // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CScreenPPCDoc)));
	return (CScreenPPCDoc*)m_pDocument;
}
#endif //_DEBUG


void CScreenPPCView::OnLogin() 
{
	UpdateData(TRUE);
	
	//m_csHostName = _T("152.15.26.28");
	//m_csPassword = _T("badasdrihasdasdascl96asdasd019");
	//m_csUsername = _T("adminasdasistrator");
	
	((CScreenPPCApp *)AfxGetApp())->CheckForAuthentication();
	
}

void CScreenPPCView::OnInitialUpdate() 
{
	CFormView::OnInitialUpdate();
	((CScreenPPCApp *)AfxGetApp())->m_pActiveView=this;
}

void CScreenPPCView::OnExit() 
{
	AfxGetMainWnd()->SendMessage (WM_CLOSE,0,0);
}

⌨️ 快捷键说明

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