资源简介
非常强大的数学公式编辑器,附带源码。可以输出输出图片或者文本。
代码片段和文件信息
/////////////////////////////////////////////////////////////////////////////
// File: BinTree.cpp
// Version: 1.0.0.0
// Created: 03-april-2002
//
// Author: Thorsten Wack
// E-mail: wt@umsicht.fhg.de
//
// parts of code by Zafir Anjum (Converting DDB to DIB )
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is
// not sold for profit without the authors written consent and
// providing that this notice and the authors name is included. If
// the source code in this file is used in any commercial application
// then a simple email would be nice.
//
// This file is provided “as is“ with no expressed or implied warranty.
// The author accepts no liability if it causes any damage whatsoever.
//
// Version 1.0.0.1: Export to emf/wmf is now supported. Added a new method
// BOOL WriteWMF(CString strFile). Suggested by Roman Nurik
/////////////////////////////////////////////////////////////////////////////
#include “stdafx.h“
#include “bintree.h“
/////////////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CBinTree Cobject 1)
CBinTree::CBinTree()
{
m_pRootNode=NULL;
m_pSelectNode=NULL;
m_dwSelectType=NULL;
m_strName=““;
}
CBinTree::~CBinTree()
{
// clean up the memory
if(m_pRootNode)
delete m_pRootNode;
}
// return the root node of the tree
CNode* CBinTree::GetRootNode()
{
return m_pRootNode;
}
// sets the root node of the tree
void CBinTree::SetRootNode(CNode* pNode)
{
m_pRootNode=pNode;
}
// return the name of the tree
CString CBinTree::GetName()
{
return m_strName;
}
// set the name of the tree
void CBinTree::SetName(CString strName)
{
m_strName=strName;
}
// create a tree with node of type strType as root
CNode* CBinTree::CreateTree(CString strType)
{
m_pRootNode=CreateNode(strType);
return m_pRootNode;
}
// reset the complete tree and delete all nodes
void CBinTree::ResetTree()
{
DeleteContents();
}
// create a node of a given type
CNode* CBinTree::CreateNode(CString strType)
{
CNode* pNode=NULL;
if (strType == NT_STANDARD)
{
pNode=(CNode*) new CNode();
pNode->m_dwEditMode &= NE_ALLOWEDIT;
}
else if (strType == NT_DIVISION) pNode=(CNode*) new CDivisionNode();
else if (strType == NT_NTHROOT) pNode=(CNode*) new CNthRootNode();
else if (strType == NT_ROOT) pNode=(CNode*) new CSquareRootNode();
else if (strType == NT_POWERTO) pNode=(CNode*) new CPowerToNode();
else if (strType == NT_PLACEHOLDER) pNode=(CNode*) new CPlaceHolderNode();
else if (strType == NT_BRACE) pNode=(CNode*) new CBraceNode();
else if (strType == NT_EQUATION) pNode=(CNode*) new CEquationNode();
else if (strType == NT_PLUS) pNode=(CNode*) new CPlusNode();
else if (strType == NT_MINUS) pNode=(CNode*) new CMinusNode();
else if (strType == NT_TIMES) pNode=(CNode*) new CTimesN 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3843 1999-01-09 12:35 projekte\FormulaDlg\ColourPicker.h
文件 1078 2002-03-28 09:54 projekte\FormulaDlg\res\Formula.ico
文件 399 2002-03-28 09:54 projekte\FormulaDlg\res\Formula.rc2
文件 1078 2002-03-28 09:54 projekte\FormulaDlg\res\FormulaDoc.ico
文件 310 2002-04-15 11:04 projekte\FormulaDlg\res\printer.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\redod.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\redof.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\redou.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\redox.bmp
文件 1318 2002-09-27 10:00 projekte\FormulaDlg\res\Toolbar.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\undod.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\undof.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\undou.bmp
文件 438 2002-04-02 07:52 projekte\FormulaDlg\res\undox.bmp
文件 20927 2003-04-16 08:39 projekte\FormulaDlg\BinTree.cpp
文件 3952 2003-04-14 12:07 projekte\FormulaDlg\BinTree.h
文件 8135 2003-02-26 15:28 projekte\FormulaDlg\BinTreeFormat.cpp
文件 2341 2002-09-18 09:39 projekte\FormulaDlg\BinTreeFormat.h
文件 9926 1999-06-06 16:18 projekte\FormulaDlg\ColourPicker.cpp
文件 2678 2001-08-13 13:13 projekte\FormulaDlg\mathsym\arrows.bmp
文件 5398 2001-07-27 07:47 projekte\FormulaDlg\mathsym\brace.bmp
文件 2038 2002-05-31 09:02 projekte\FormulaDlg\mathsym\coredata.bmp
文件 1398 2002-09-20 10:11 projekte\FormulaDlg\mathsym\derivative.bmp
文件 4598 2001-07-27 09:09 projekte\FormulaDlg\mathsym\equation.bmp
文件 7798 2002-05-03 14:10 projekte\FormulaDlg\mathsym\function.bmp
文件 2038 2002-05-03 07:45 projekte\FormulaDlg\mathsym\integral.bmp
文件 5638 2001-07-27 07:47 projekte\FormulaDlg\mathsym\lower_greek.bmp
文件 2678 2001-07-27 07:47 projekte\FormulaDlg\mathsym\matrix.bmp
文件 2038 2001-08-14 14:27 projekte\FormulaDlg\mathsym\pbyq.bmp
文件 758 2001-08-14 13:14 projekte\FormulaDlg\mathsym\prod.bmp
文件 758 2001-08-13 08:41 projekte\FormulaDlg\mathsym\sum.bmp
............此处省略50个文件信息
- 上一篇:简易电子表格代码与文档
- 下一篇:C++ 家庭理财管理系统
相关资源
- 基于MFC的TCP调试助手源码95706
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- qt texteditor(富文本编辑器)
- qt登录富文本编辑器和文档打印设计
- vscode作为编辑器开发stm32f103c8
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- OFD编辑器
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
川公网安备 51152502000135号
评论
共有 条评论