资源简介

vc 源码 链接文件 捆绑 后门 vc 源码 链接文件 捆绑 后门 vc 源码 链接文件 捆绑 后门 vc 源码 链接文件 捆绑 后门

资源截图

代码片段和文件信息

//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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2525  2001-12-01 16:43  BindFile.cpp
     文件        1491  2001-12-01 16:41  BindFile.h
     文件        7133  2001-12-18 16:23  BindFile.rc
     文件        1853  2001-12-18 15:35  BindFile.clw
     文件        1793  2001-12-19 09:15  ReadMe.txt
     文件         999  2001-12-01 16:16  StdAfx.h
     文件         210  2001-12-01 16:16  StdAfx.cpp
     文件         539  2001-12-01 16:16  BindFile.dsw
     目录           0  2001-12-01 16:16  RES\
     文件         400  2001-12-01 16:16  RES\BindFile.rc2
     文件        1078  2001-12-17 15:27  RES\BindFile.ico
     文件       18270  2001-12-17 16:45  RES\ButtonsWin3000.bmp
     文件        4734  2001-12-17 16:45  RES\Button1.bmp
     文件        2340  1999-11-30 08:48  AutoFont.h
     文件        2866  2001-02-14 00:16  MemDC.h
     文件        2279  2001-07-19 22:52  StaticFilespec.cpp
     文件        7542  2000-05-22 10:57  AutoFont.cpp
     文件        4265  2001-07-14 19:09  WBButton.h
     文件        8683  2001-12-17 16:38  WBButton.cpp
     文件        1618  2001-12-17 16:38  StaticFilespec.h
     文件       10786  2001-12-18 14:28  GradientProgressCtrl.cpp
     文件        2357  2001-12-18 15:05  GradientProgressCtrl.h
     文件        1451  2001-12-18 15:32  Resource.h
     文件        3805  2001-12-18 15:32  BindFileDlg.h
     文件       22615  2001-12-18 16:40  BindFileDlg.cpp
     文件        4847  2001-12-18 15:20  BindFile.dsp
     文件       51712  2001-12-23 20:29  BindFile.opt

评论

共有 条评论