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.

33 lines
864 B
C++

#pragma once
#include "valstrbase.h"
#include "GlobalDefine.h"
#include "SmartPtr.h"
#include "EnumValStrType.h"
//可变文本
class CValString
{
public:
CValString(void);
~CValString(void);
void Copy(CValString &rhs);
void SetString(CString str);
CString GetString();
void AddValStr(CValStrBase *p);
void InsertList(CListCtrl &List);
void DelSelValStr(int &idx);
void SwapValStr(int idx1,int idx2);
CValStrBase *GetValStrPtr(int idx);
VAL_STR_TYPR GetSelValStrType(int idx);
void SetbValStr(bool b){m_bValStr = b;};
bool GetbValStr(){return m_bValStr;};
void UpdateValStr();
private:
bool IdxValid(int idx);
private:
bool m_bValStr;//是否可变
CString m_String;//字符串内容
vector<Sptr<CValStrBase>> m_ValStrVec;//可变文本列表
};