資源簡介
文件分割源代碼.
可對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++實現
評論
共有 條評論