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

📄 xianhanshu.cpp

📁 一个基于C++语言的简单学籍管理系统
💻 CPP
字号:
// XianHanshu.cpp : implementation file
//

#include "stdafx.h"
#include "ClassEntryLink.h"
#include "XianHanshu.h"
#include "Hanshu.h"


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

/////////////////////////////////////////////////////////////////////////////
// XianHanshu dialog


XianHanshu::XianHanshu(CWnd* pParent /*=NULL*/)
	: CDialog(XianHanshu::IDD, pParent)
{
	//{{AFX_DATA_INIT(XianHanshu)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_pClass=NULL;
}


void XianHanshu::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(XianHanshu)
	DDX_Control(pDX, IDC_LIST1, m_listbox);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(XianHanshu, CDialog)
	//{{AFX_MSG_MAP(XianHanshu)
	ON_LBN_DBLCLK(IDC_LIST1, OnDblclkList1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// XianHanshu message handlers

BOOL XianHanshu::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
			FunMember* ftmp=m_pClass->fm;
			while(ftmp)
			{
				m_listbox.AddString(ftmp->name);
				ftmp=ftmp->next;
			}
	
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void XianHanshu::OnDblclkList1() 
{
	// TODO: Add your control notification handler code here
	int icus=m_listbox.GetCurSel();
	if(icus<0) return;
	CString s;
	m_listbox.GetText(icus,s);

	FunMember* ftmp=m_pClass->fm;
			while(ftmp)
			{
				if(ftmp->name==s)
					break;
				ftmp=ftmp->next;
			}

	Hanshu dlg;
	dlg.m_pFun=ftmp;
	dlg.m_xianshi=TRUE;
	dlg.DoModal();
}

⌨️ 快捷键说明

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