bool CNameTextMgr::LoadCSVData(const char* csvfile) { CCSVParser file; if( !csvfile || !file.Load(csvfile) ) { LOGGER_ERROR("[InitData] Load File Failed:%s", csvfile); return false; } int count = file.Line(); for(int i = 0;i<count; ++i) { char szString[64]={0}; file.GetAttribute(i,0,szString,64); _AddText(szString, m_NameVector); } file.Release(); return true; }
void Remsa::HandleMessage(Message *msg) { const char *str=0L; switch(msg->GetCode()) { case 1: msg->FindString("text", &str); _AddText( str ); break; case ID_COPY: m_TextView->SelectAll(); m_TextView->Copy(); m_TextView->ClearSelection(); break; case ID_CLEAR: m_TextView->Clear(); break; case ID_SAVE: break; default: Window::HandleMessage(msg); } }
void Debug::AddText(CString & str) { _AddText((str)); }