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"
//<2F>ɱ<EFBFBD><C9B1>ı<EFBFBD>
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;//<2F>Ƿ<EFBFBD><C7B7>ɱ<EFBFBD>
CString m_String;//<2F>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
vector<Sptr<CValStrBase>> m_ValStrVec;//<2F>ɱ<EFBFBD><C9B1>ı<EFBFBD><C4B1>б<EFBFBD>
};