• 大小: 180KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-29
  • 语言: 其他
  • 标签: CTreeCtrl  自绘  

资源简介

CTreeCtrl 实现自绘 达到你要的结果。很好的自绘教程代码

资源截图

代码片段和文件信息

// CustomCTreeCtrl.cpp : 定义应用程序的类行为。
//

#include “stdafx.h“
#include “CustomCTreeCtrl.h“
#include “CustomCTreeCtrlDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CCustomCTreeCtrlApp

BEGIN_MESSAGE_MAP(CCustomCTreeCtrlApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CCustomCTreeCtrlApp 构造

CCustomCTreeCtrlApp::CCustomCTreeCtrlApp()
{
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CCustomCTreeCtrlApp 对象

CCustomCTreeCtrlApp theApp;


// CCustomCTreeCtrlApp 初始化

BOOL CCustomCTreeCtrlApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();

AfxEnableControlContainer();

// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));

CCustomCTreeCtrlDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此处放置处理何时用“确定”来关闭
//  对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用“取消”来关闭
//  对话框的代码
}

// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
//  而不是启动应用程序的消息泵。
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-04-15 18:21  CustomCTreeCtrl\
     目录           0  2012-04-15 18:21  CustomCTreeCtrl\CustomCTreeCtrl\
     文件         910  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl.sln
     文件       52736  2012-04-15 18:21  CustomCTreeCtrl\CustomCTreeCtrl.suo
     文件         450  2010-04-09 10:45  CustomCTreeCtrl\CustomCTreeCtrl\Add.bmp
     文件      293662  2012-04-13 12:37  CustomCTreeCtrl\CustomCTreeCtrl\bk.bmp
     文件      376008  2012-04-15 18:15  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrl.aps
     文件        1766  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrl.cpp
     文件      647168  2012-04-15 18:15  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrl.exe
     文件         495  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrl.h
     文件        5353  2012-04-15 18:15  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrl.rc
     文件        6201  2012-04-15 11:05  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrl.vcproj
     文件        1401  2012-04-15 18:21  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrl.vcproj.PH.Administrator.user
     文件        4856  2012-04-15 16:53  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrlDlg.cpp
     文件         780  2012-04-15 15:49  CustomCTreeCtrl\CustomCTreeCtrl\CustomCTreeCtrlDlg.h
     文件       30287  2012-04-08 16:33  CustomCTreeCtrl\CustomCTreeCtrl\GDIPlusEx.cpp
     文件       14056  2012-11-29 14:48  CustomCTreeCtrl\CustomCTreeCtrl\GDIPlusEx.h
     文件       12939  2012-04-15 18:14  CustomCTreeCtrl\CustomCTreeCtrl\MyCtreeCtrl.cpp
     文件        4390  2012-04-15 18:13  CustomCTreeCtrl\CustomCTreeCtrl\MyCtreeCtrl.h
     文件       23514  2012-04-13 09:34  CustomCTreeCtrl\CustomCTreeCtrl\no.bmp
     文件        3035  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl\ReadMe.txt
     目录           0  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl\res\
     文件         823  2012-04-15 15:49  CustomCTreeCtrl\CustomCTreeCtrl\resource.h
     文件       21630  2005-12-08 14:56  CustomCTreeCtrl\CustomCTreeCtrl\res\CustomCTreeCtrl.ico
     文件         371  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl\res\CustomCTreeCtrl.rc2
     文件       16898  2007-01-23 16:10  CustomCTreeCtrl\CustomCTreeCtrl\skinscrollbar.cpp
     文件        2152  2011-11-17 00:26  CustomCTreeCtrl\CustomCTreeCtrl\skinscrollbar.h
     文件       10206  2012-11-21 13:28  CustomCTreeCtrl\CustomCTreeCtrl\skinscrollwnd.cpp
     文件        1814  2011-11-16 23:46  CustomCTreeCtrl\CustomCTreeCtrl\skinscrollwnd.h
     文件         146  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl\stdafx.cpp
     文件        2489  2012-04-13 09:29  CustomCTreeCtrl\CustomCTreeCtrl\stdafx.h
............此处省略2个文件信息

评论

共有 条评论