• 大小: 7.58MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-24
  • 语言: C/C++
  • 标签: MFC  

资源简介

适合MFC入门的朋友,树形控件的基本操作,以及用数组储存信息

资源截图

代码片段和文件信息

// AddDlg.cpp : 实现文件
//

#include “stdafx.h“
#include “Adressbooknew.h“
#include “AddDlg.h“


// CAddDlg 对话框

IMPLEMENT_DYNAMIC(CAddDlg CDialog)

CAddDlg::CAddDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAddDlg::IDD pParent)
{

}

CAddDlg::~CAddDlg()
{

}

void CAddDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX IDC_EDIT1 m_editNewGroup);


//DDX_Control(pDX IDC_CHECK1 m_check);
}


BEGIN_MESSAGE_MAP(CAddDlg CDialog)
ON_BN_CLICKED(IDC_ADDG_BUTTON &CAddDlg::OnBnClickedAddgButton)
ON_BN_CLICKED(IDCANCEL &CAddDlg::OnBnClickedCancel)

END_MESSAGE_MAP()


// CAddDlg 消息处理程序

void CAddDlg::OnBnClickedAddgButton()
{
// TODO: 在此添加控件通知处理程序代码
/*CWnd*pwnd=this->GetParent();
::SendMessage(pwnd->GetSafeHwnd()WM_OK_event11);

OnOK();*/
::SendMessage(this->GetParent()->GetSafeHwnd()WM_OK_event00);
   //对话框变量传递
//m_tree1=&CAdressbooknewDlg.m_Tree
//SendMessage(WM_OK_even111);
   

/*CString str;
HTREEITEM handle3;
m_editNewGroup.GetWindowText(str);
if(str==““)
MessageBox(_T(“请补全分组名称“));
else
handle3=m_tree1->InsertItem(str00);*/
    OnOK();

}

void CAddDlg::OnBnClickedCancel()
{
// TODO: 在此添加控件通知处理程序代码
OnCancel();
}



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     616448  2014-04-17 14:45  涂晓衍 第五题.ppt

     文件       1328  2014-03-26 21:19  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\AddDlg.cpp

     文件        638  2014-03-26 21:19  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\AddDlg.h

     文件      73396  2014-03-28 19:39  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.aps

     文件       1740  2013-04-23 00:27  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.cpp

     文件        483  2013-04-23 00:27  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.h

     文件       7583  2014-03-28 19:39  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.rc

     文件       6115  2014-03-26 21:53  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.vcproj

     文件       1415  2013-05-06 15:42  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.vcproj.Melody-PC.Melody.user

     文件       1427  2013-10-12 21:09  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.vcproj.PC-201112280942.Administrator.user

     文件       1427  2014-04-06 15:16  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Adressbooknew.vcproj.PC2009072716TQA.Administrator.user

     文件      14134  2014-03-30 19:44  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\AdressbooknewDlg.cpp

     文件       2368  2014-03-28 16:41  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\AdressbooknewDlg.h

     文件      26257  2014-03-27 09:52  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\AddDlg.obj

     文件        936  2014-03-27 09:52  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\Adressbooknew.exe.embed.manifest

     文件       1000  2014-03-27 09:52  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\Adressbooknew.exe.embed.manifest.res

     文件        884  2014-04-06 15:16  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\Adressbooknew.exe.intermediate.manifest

     文件      26974  2014-03-30 16:20  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\Adressbooknew.obj

     文件   13434880  2014-03-30 15:47  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\Adressbooknew.pch

     文件      34836  2014-03-28 19:39  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\Adressbooknew.res

     文件      79322  2014-03-30 19:44  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\AdressbooknewDlg.obj

     文件       6464  2014-04-06 15:16  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\BuildLog.htm

     文件      29698  2014-04-06 15:15  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\DragTreeCtrl.obj

     文件         67  2014-04-06 15:16  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\mt.dep

     文件     270882  2014-03-30 15:47  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\stdafx.obj

     文件     723968  2014-04-06 15:15  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\vc80.idb

     文件     700416  2014-04-06 15:15  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\Debug\vc80.pdb

     文件       4110  2014-04-06 15:16  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\DragTreeCtrl.cpp

     文件        720  2013-03-30 15:39  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\DragTreeCtrl.h

     文件       2871  2013-04-23 00:27  复件 Adressbooknew 2.0\Adressbooknew\Adressbooknew\ReadMe.txt

............此处省略25个文件信息

评论

共有 条评论