资源简介
非常强大的数学公式编辑器,附带源码。可以输出输出图片或者文本。
代码片段和文件信息
/////////////////////////////////////////////////////////////////////////////
// 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编写的简单聊天程序
- 传智播客MFC第三天项目
- mfc waveout播放器
- MFC 通过 URL 网络资源
- 基于MFC和OPENGL的五轴G代码仿真
- 链码 特征检测 MFC c++ 边缘提取
- MFC写的录屏代码,保存格式为AVI
- MFC 与UG开发教程与视频
- 基于MFC类库的端口扫描器设计与实现
- snmp++实现Trap接收
- vc_mbcsmfc.exe
- 面向对象的编程技术课程设计VC++_MF
- mfc画一个五角星的可以运行
- cannot open file \“mfc42ud.lib\“ 错误可该
- VC++高精度媒体定时器的使用_MFC
- MFC_酒店管理系统
- MFC 计算器源代码
- MFC 导入D3D模型文件
- 旋转的风车,使用MFC编写
- MFC用户名密码登陆对话框
- C++实现银行储蓄系统 MFC界面
- 空间后方交会(基于MFC)
- 音频感知哈希函数的提取matlab codes
- 文本编辑器C++代码
- vs2008(mfc)通过ADO连接SQL SERVER 2008源
- 用vc++ mfc 编写的一个网页浏览器
- VC++(MFC)实现FTP功能(源代码)
- wxWidget多语言移植到MFC动态库DLL
- MFC对话框动态接收数据插入List列表并
- 单片空间后方交会,求外方位元素、
评论
共有 条评论