?? findapersondlg.cpp
字號(hào):
// FindApersonDlg.cpp : implementation file
//
#include "stdafx.h"
#include "dangan.h"
#include "FindApersonDlg.h"
#include "hlinklist.h"
#include "hchage.h"
#include "fstream.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFindApersonDlg dialog
CFindApersonDlg::CFindApersonDlg(CWnd* pParent /*=NULL*/)
: CDialog(CFindApersonDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CFindApersonDlg)
m_find_chose = -1;
//}}AFX_DATA_INIT
}
void CFindApersonDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFindApersonDlg)
DDX_Control(pDX, IDC_LIST_RESALT, m_resalt);
DDX_Control(pDX, IDC_BUTTON_FIND, m_bfind);
DDX_Control(pDX, IDC_STATIC_MATHOD, m_static_mathod);
DDX_Control(pDX, IDC_EDIT_MATHOD, m_mathod);
DDX_Radio(pDX, IDC_FIND_NUM, m_find_chose);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CFindApersonDlg, CDialog)
//{{AFX_MSG_MAP(CFindApersonDlg)
ON_BN_CLICKED(IDC_FIND_NUM, OnFindNum)
ON_BN_CLICKED(IDC_FIND_NAME, OnFindName)
ON_BN_CLICKED(IDC_FIND_COMPANY, OnFindCompany)
ON_BN_CLICKED(IDC_FIND_LEVEL, OnFindLevel)
ON_EN_CHANGE(IDC_EDIT_MATHOD, OnChangeEditMathod)
ON_BN_CLICKED(IDC_BUTTON_FIND, OnButtonFind)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFindApersonDlg message handlers
CString Mmathod;
LinkList Flist;
void CFindApersonDlg::OnFindNum()
{
m_find_chose=0;
m_static_mathod.SetWindowText("請輸入其編號(hào):");
UpdateData(FALSE);
}
void CFindApersonDlg::OnFindName()
{
m_find_chose=1;
m_static_mathod.SetWindowText("請輸入其姓名:");
UpdateData(FALSE);
}
void CFindApersonDlg::OnFindCompany()
{
m_find_chose=2;
m_static_mathod.SetWindowText("請輸入其單位:");
UpdateData(FALSE);
}
void CFindApersonDlg::OnFindLevel()
{
m_find_chose=3;
m_static_mathod.SetWindowText("請輸入其職稱:");
UpdateData(FALSE);
}
BOOL CFindApersonDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// void Input(LinkList List);
// Input(Flist);
// if(m_find_chose==1){
// m_static_mathod.SetWindowText("sfsf");
// }
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CFindApersonDlg::OnChangeEditMathod()
{
m_mathod.GetWindowText(Mmathod);
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
}
void CFindApersonDlg::OnOK()
{
// TODO: Add extra validation here
CDialog::OnOK();
}
void CFindApersonDlg::OnButtonFind()
{
// TODO: Add your control notification handler code here
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -