You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
717 B
C++
34 lines
717 B
C++
#include "StdAfx.h"
|
|
#include "ObjString.h"
|
|
#include "FontTypeMgr.h"
|
|
|
|
CObjString::CObjString(void)
|
|
{
|
|
}
|
|
|
|
CObjString::~CObjString(void)
|
|
{
|
|
}
|
|
CObjString::CObjString(CObjString &rhs)
|
|
:CObjComposite(rhs)
|
|
{
|
|
m_ValStr.Copy(rhs.m_ValStr);
|
|
m_FontTypeName = rhs.m_FontTypeName;
|
|
m_FontName = rhs.m_FontName;
|
|
}
|
|
//获得可变文本的拷贝
|
|
void CObjString::GetValStrCopy(CValString &ValStr)
|
|
{
|
|
ValStr.Copy(m_ValStr);
|
|
}
|
|
void CObjString::SetValStr(CValString &ValStr)
|
|
{
|
|
m_ValStr.Copy(ValStr);
|
|
}
|
|
//保存当前系统字体的名字
|
|
void CObjString::SetUseCurFontName()
|
|
{
|
|
CFontTypeMgr &pFontTypeMgr = CFontTypeMgr::Instance();
|
|
SetFontTypeName(pFontTypeMgr.GetCurFontTypeName());
|
|
SetFontName(pFontTypeMgr.GetCurFontName());
|
|
} |