资源简介
C++网络验证 测试不错的 很好用 你值得拥有 推荐 推荐
代码片段和文件信息
// Dialog1.cpp : 实现文件
//
#include “stdafx.h“
#include “VcLogin.h“
#include “Dialog1.h“
#include “afxdialogex.h“
#include “HDTool.h“
#include “../tool/UitlMFC.h“
// CDialog1 对话框
IMPLEMENT_DYNAMIC(CDialog1 CDialog)
CDialog1::CDialog1(CWnd* pParent /*=NULL*/): CDialog(CDialog1::IDD pParent)
{
}
CDialog1::~CDialog1()
{
}
void CDialog1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CDialog1 CDialog)
ON_BN_CLICKED(IDC_OK &CDialog1::OnBnClickedOk)
ON_BN_CLICKED(IDC_UnBind &CDialog1::OnBnClickedUnbind)
ON_STN_CLICKED(IDC_STATIC_login_verftycode &CDialog1::OnStnClickedStaticloginverftycode)
ON_WM_SETCURSOR()
ON_BN_CLICKED(IDC_BUTTON_Probation &CDialog1::OnBnClickedButtonProbation)
END_MESSAGE_MAP()
// CDialog1 消息处理程序
void CDialog1::OnBnClickedOk()
{
CString usernamepasswordverifycode;
GetDlgItem(IDC_EDIT_username)->GetWindowTextW(username);
GetDlgItem(IDC_EDIT_password)->GetWindowTextW(password);
GetDlgItem(IDC_EDIT_verifyCode)->GetWindowTextW(verifycode);
int ret=hd->Login(username.GetBuffer(0)password.GetBuffer(0)verifycode.GetBuffer(0));
if (ret!=1)
{
MessageBoxA(this->m_hWndhd->GetLastError()““64);
return;
}else
{
funWindow.Create(IDD_DIALOG5GetDesktopWindow());
funWindow.ShowWindow(SW_SHOW);
//GetParent()->GetParent()->ShowWindow(SW_HIDE);
AfxGetMainWnd()->ShowWindow(SW_HIDE);
}
}
void CDialog1::OnBnClickedUnbind()
{
CString usernamepasswordverifycode;
GetDlgItem(IDC_EDIT_username)->GetWindowTextW(username);
GetDlgItem(IDC_EDIT_password)->GetWindowTextW(password);
GetDlgItem(IDC_EDIT_verifyCode)->GetWindowTextW(verifycode);
CString out=hd->Unbind(username.GetBuffer(0)password.GetBuffer(0)verifycode.GetBuffer(0));
MessageBoxW(out.GetBuffer(0)L““64);
GetVerifyCodeData();
}
void CDialog1::OnStnClickedStaticloginverftycode()
{
GetVerifyCodeData();
}
BOOL CDialog1::OnSetCursor(CWnd* pWnd UINT nHitTest UINT message)
{
CPoint pos;
GetCursorPos(&pos);
CRect rc;
GetDlgItem(IDC_STATIC_login_verftycode)->GetWindowRect(rc);
//如果鼠标在这个范围之内
if (rc.PtInRect(pos))
{
SetCursor(LoadCursor(NULLIDC_HAND));//设置成手状
return TRUE; //记得返回TRUE
}
return CDialog::OnSetCursor(pWnd nHitTest message);
}
void CDialog1:: OnOK()
{
}
void CDialog1::OnCancel()
{
}
void CDialog1::OnClose()
{
CDialog::OnCancel();
}
void CDialog1::OnBnClickedButtonProbation()
{
CString verifycode;
GetDlgItem(IDC_EDIT_verifyCode)->GetWindowTextW(verifycode);
int ret=hd->Probation(verifycode.GetBuffer(0));
if (ret!=1)
{
MessageBoxA(this->m_hWndhd->GetLastError()““64);
return;
}else
{
funWindow.Create(IDD_DIALOG5GetDesktopWindow());
funWindow.ShowWindow(SW_SHOW);
//GetParent()->GetParent()->ShowWindow(SW_HIDE);
AfxGetMainWnd()->ShowWindow(SW_HIDE);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 3016 2016-05-21 13:48 VcLogin\Dialog1.cpp
I.A.... 723 2016-05-21 13:48 VcLogin\Dialog1.h
I.A.... 1895 2016-05-13 20:02 VcLogin\Dialog2.cpp
I.A.... 626 2016-05-13 20:02 VcLogin\Dialog2.h
I.A.... 1680 2016-05-13 20:02 VcLogin\Dialog3.cpp
I.A.... 571 2016-05-13 20:02 VcLogin\Dialog3.h
I.A.... 1806 2016-05-13 20:02 VcLogin\Dialog4.cpp
I.A.... 571 2016-05-13 20:02 VcLogin\Dialog4.h
文件 2194 2016-05-25 00:25 VcLogin\funDialog.cpp
文件 650 2016-05-25 00:28 VcLogin\funDialog.h
文件 50293 2016-05-21 20:11 VcLogin\hdplug.tlh
文件 51023 2016-05-21 20:10 VcLogin\hdplug.tli
I.A.... 282 2016-05-24 20:29 VcLogin\HDTool.h
文件 115712 2016-05-22 17:23 VcLogin\HDTool_MT.lib
文件 56126 2016-05-23 01:02 VcLogin\HDTool_MTd.lib
文件 3013 2016-04-16 19:01 VcLogin\ReadMe.txt
文件 67777 2009-08-31 02:31 VcLogin\res\VcLogin.ico
文件 986 2016-05-24 22:35 VcLogin\res\VcLogin.rc2
文件 5680 2016-05-25 00:28 VcLogin\resource.h
文件 140 2016-04-16 19:01 VcLogin\stdafx.cpp
文件 1737 2016-05-14 18:54 VcLogin\stdafx.h
文件 234 2016-04-16 19:01 VcLogin\targetver.h
I.A.... 1920 2016-05-13 20:02 VcLogin\VcLogin\Dialog1.cpp
I.A.... 515 2016-05-13 20:02 VcLogin\VcLogin\Dialog1.h
I.A.... 1080 2016-05-13 20:02 VcLogin\VcLogin\Dialog2.cpp
I.A.... 431 2016-05-13 20:02 VcLogin\VcLogin\Dialog2.h
I.A.... 972 2016-05-13 20:02 VcLogin\VcLogin\Dialog3.cpp
I.A.... 397 2016-05-13 20:02 VcLogin\VcLogin\Dialog3.h
I.A.... 1106 2016-05-13 20:02 VcLogin\VcLogin\Dialog4.cpp
I.A.... 399 2016-05-13 20:02 VcLogin\VcLogin\Dialog4.h
............此处省略32个文件信息
评论
共有 条评论