资源简介
文件分割源代码.
可对txt文件进行分割.
使用vc6编写

代码片段和文件信息
//CAutoFont class implementation
#include “stdafx.h“
#include “AutoFont.h“
CAutoFont::CAutoFont()
{
lf.lfHeight=-12;
lf.lfWidth=0;
lf.lfEscapement=0;
lf.lfOrientation=0;
lf.lfWeight=FW_NORMAL;
lf.lfItalic=0;
lf.lfUnderline=0;
lf.lfStrikeOut=0;
lf.lfCharSet=DEFAULT_CHARSET; //ANSI_CHARSET;
lf.lfOutPrecision=OUT_DEFAULT_PRECIS;
lf.lfClipPrecision=CLIP_DEFAULT_PRECIS;
lf.lfQuality=PROOF_QUALITY;
lf.lfPitchAndFamily=VARIABLE_PITCH | FF_ROMAN;
strcpy(lf.lfFaceName “Times New Roman“);
CreateFontIndirect(&lf);
fontColor=0;
hDC=NULL;
}
CAutoFont::CAutoFont(CString facename)
{
lf.lfHeight=-12;
lf.lfWidth=0;
lf.lfEscapement=0;
lf.lfOrientation=0;
lf.lfWeight=FW_NORMAL;
lf.lfItalic=0;
lf.lfUnderline=0;
lf.lfStrikeOut=0;
lf.lfCharSet=DEFAULT_CHARSET; //ANSI_CHARSET;
lf.lfOutPrecision=OUT_DEFAULT_PRECIS;
lf.lfClipPrecision=CLIP_DEFAULT_PRECIS;
lf.lfQuality=PROOF_QUALITY;
lf.lfPitchAndFamily=VARIABLE_PITCH | FF_ROMAN;
strcpy(lf.lfFaceName (LPCTSTR)facename);
CreateFontIndirect(&lf);
fontColor=0;
hDC=NULL;
}
CAutoFont::CAutoFont(LOGFONT& logfont)
{
lf=logfont;
CreateFontIndirect(&lf);
fontColor=0;
hDC=NULL;
}
CAutoFont::CAutoFont(CFont font)
{
HFONT hFont=(HFONT)font;
Attach((HFONT)hFont);
GetLogFont(&lf);
fontColor=0;
hDC=NULL;
}
CAutoFont::~CAutoFont()
{
}
LONG CAutoFont::SetHeight(LONG height)
{
LONG l=lf.lfHeight;
Deleteobject();
lf.lfHeight=height;
CreateFontIndirect(&lf);
return l;
}
LONG CAutoFont::SetHeightA(LONG height)
{
LONG l=lf.lfHeight;
Deleteobject();
if (height>0)
height=0-height;
lf.lfHeight=height;
CreateFontIndirect(&lf);
return l;
}
LONG CAutoFont::SetWidth(LONG width)
{
LONG l=lf.lfWidth;
Deleteobject();
lf.lfWidth=width;
CreateFontIndirect(&lf);
return l;
}
LONG CAutoFont::SetEscapement(LONG esc)
{
LONG l=lf.lfEscapement;
Deleteobject();
lf.lfEscapement=esc;
CreateFontIndirect(&lf);
return l;
}
LONG CAutoFont::SetOrientation(LONG or)
{
LONG l=lf.lfOrientation;
Deleteobject();
lf.lfOrientation=or;
CreateFontIndirect(&lf);
return l;
}
LONG CAutoFont::SetWeight(LONG weight)
{
LONG l=lf.lfWeight;
Deleteobject();
lf.lfWeight=weight;
CreateFontIndirect(&lf);
return l;
}
BYTE CAutoFont::SetCharset(BYTE charset)
{
BYTE b=lf.lfCharSet;
Deleteobject();
lf.lfCharSet=charset;
CreateFontIndirect(&lf);
return b;
}
BYTE CAutoFont::SetOutPrecision(BYTE op)
{
BYTE b=lf.lfOutPrecision;
Deleteobject();
lf.lfOutPrecision=op;
CreateFontIndirect(&lf);
return b;
}
BYTE CAutoFont::SetClipPrecision(BYTE cp)
{
BYTE b=lf.lfClipPrecision;
Deleteobject();
lf.lfClipPrecision=cp;
CreateFontIndirect(&lf);
return b;
}
BYTE CAutoFont::SetQuality(BYTE qual)
{
BYTE b=lf.lfQuality;
Deleteobject();
lf.lfQuality=qual;
CreateFontIndirect(&lf);
return b;
}
BY
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-09-11 08:38 2928179
文件 45308 2008-05-03 09:39 2928179\FileSplt.aps
文件 1708 2008-06-09 22:21 2928179\FileSplt.clw
文件 7542 2000-05-22 10:57 2928179\AutoFont.cpp
文件 4058 2001-02-09 21:06 2928179\DirDialog.cpp
文件 2171 2001-02-14 10:57 2928179\FileSplt.cpp
文件 10784 2001-02-14 00:15 2928179\GradientProgressCtrl.cpp
文件 210 2001-02-13 10:27 2928179\StdAfx.cpp
文件 8405 2001-02-14 10:47 2928179\WBButton.cpp
文件 539 2001-02-13 10:27 2928179\FileSplt.dsw
文件 249856 2008-06-09 22:16 2928179\FileSplt.exe
文件 2340 1999-11-30 08:48 2928179\AutoFont.h
文件 774 2000-03-08 11:44 2928179\DirDialog.h
文件 1346 2001-02-13 10:27 2928179\FileSplt.h
文件 2012 2001-02-14 00:17 2928179\FileSpltDlg.h
文件 2363 2001-02-08 22:07 2928179\GradientProgressCtrl.h
文件 2866 2001-02-14 00:16 2928179\MemDC.h
文件 1184 2001-02-13 23:28 2928179\resource.h
文件 1054 2001-02-13 10:27 2928179\StdAfx.h
文件 4343 2000-05-29 23:12 2928179\WBButton.h
文件 5484 2006-04-07 16:41 2928179\下载说明.htm
文件 115712 2008-06-09 22:21 2928179\FileSplt.ncb
文件 2445 2008-06-09 22:16 2928179\FileSplt.plg
文件 7100 2001-02-14 10:38 2928179\FileSplt.rc
文件 4908 2008-05-03 13:10 2928179\FileSplt.dsp
文件 14109 2008-05-29 16:28 2928179\FileSpltDlg.cpp
文件 48640 2008-06-09 22:21 2928179\FileSplt.opt
目录 0 2008-09-11 08:38 2928179\Release
文件 32428 2008-06-09 22:16 2928179\Release\FileSplt.res
文件 7156264 2008-06-09 22:16 2928179\Release\FileSplt.pch
............此处省略25个文件信息
- 上一篇:syslog解析类C++
- 下一篇:(LSB算法)数字水印的嵌入和提取VC++实现
相关资源
- 操作系统c语言模拟文件管理系统844
- C++中头文件与源文件的作用详解
- 基于mfc的多线程文件传输
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- MFC数字钟(基于VC6.0)
- 安科瑞智能电能表MODBUS通讯程序 VC6
- c语言字符串分割截取子串查找插入删
- VC6LineNumberAddin.dll
- 用VC6.0实现多边形扫描线填充算法
- 文件传输和聊天程序(c语言实现)
- C语言中 文件读取和写入的详细操作代
- VC助手 VC6.0助手
- 基于STM32F407ZG的监控摄像头及FATFS文件
- 51单片机protues文件(KST-51.DSN)
- PE文件操作代码
- 基于CS的TCP文件传输程序设计
- windows网络编程_文件传输
- 微型文件系统源码(FatFs)
- diy写字机grbl v1.1源代码
- VC6 USB开发源码
- opencv图片扫描以及校正
- 吕鑫vc6c++数据结构视频源码
- Hex文件转bin文件
- stm32 实现Fatfs对U盘文件操作(main.c)
- c++ 文件操作(读取、写入)
- dll依赖文件检测工具
- MFC的异步网络通讯应用程序
- QT 计算文件夹内所有代码行数
- C++Builder XE7 update1 和谐文件亲测可用
评论
共有 条评论