本文整理汇总了C++中CStrList::RemoveAll方法的典型用法代码示例。如果您正苦于以下问题:C++ CStrList::RemoveAll方法的具体用法?C++ CStrList::RemoveAll怎么用?C++ CStrList::RemoveAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CStrList
的用法示例。
在下文中一共展示了CStrList::RemoveAll方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DisplayNewTypeList
// =====================================================================
void insmm::DisplayNewTypeList(void)
// =====================================================================
// Format of .INF-files: 00000001.WAV,name & surname,fido address
// old: 00000001.WAV,deutsch description,englisch description
{
int i,n,ret;
FILE *fp;
char buf[300];
char tmp[300];
char name[300];
char addr[300];
CString help1;
CString help2;
CStrList inffiles;
CStrList mmfiles;
UpdateData(1);
make_path(tmp,gc.MultimedPath,"*.inf");
infolist.RemoveAll();
inffiles.FillWithFiles(tmp);
for (i=0;i<inffiles.GetCount();i++)
{
make_path(tmp,gc.MultimedPath,inffiles.GetString(i));
fp=fopen(tmp,"rt");
if (fp)
{
while (fgets(buf,299,fp))
{
if (strchr(" ;/",buf[0]) || strlen(buf)<4)
continue;
infolist.AddTail(buf);
}
fclose(fp);
}
}
make_path(tmp,gc.MultimedPath,m_mmtype==0 ? "*.bmp":"*.wav");
mmstuff.RemoveAll();
mmfiles.FillWithFiles(tmp);
for (i=0;i<mmfiles.GetCount();i++)
{
help1=mmfiles.GetString(i);
for (n=0;n<infolist.GetCount();n++)
{
help2=infolist.GetString(n);
if (!strnicmp(help1,help2,help1.GetLength()))
{
name[0]=addr[0]=0;
ret=sscanf(help2,"%[^,]%[, ]%[^,]%[ ,]%[^\n,]",tmp,tmp,name,tmp,addr);
if (ret!=5)
break;
sprintf(buf,"%s\t%s\t%s",help1,name,addr);
mmstuff.AddTail(buf);
break;
}
}
}
UPDATE_LB(mmstuff,IDC_LIST);
}
示例2: OnOK
// ================================================
void resultfm::OnOK()
// ================================================
{
char buf[1000];
char tabs[1000];
int i;
if (!TestConsistency())
return;
m_edit_format.GetWindowText(buf,999);
for (i=0;i<(int)strlen(buf);i++)
if (!strchr(" ASETIDKXY",buf[i]))
ERR_MSG2_RET("E_ILLRCCIS",buf[i]);
m_edit_tabs.GetWindowText(tabs,999);
for (i=0;i<(int)strlen(tabs);i++)
if (tabs[i]!=',' && !isdigit(tabs[i]))
ERR_MSG2_RET("E_ILLRSCCIS",tabs[i]);
resultdisp.RemoveAll();
resultdisp.AddTail(buf);
resultdisp.AddTail(tabs);
resultdisp.SaveToFile("resudisp.cfg");
KillTimer(2345);
CDialog::OnOK();
}
示例3: OnOK
// =====================================================================
void insmm::OnOK()
// =====================================================================
{
int sel;
CString line;
CString mmfile;
char buf[300];
char *p;
UpdateData(1);
sel=m_mm_list.GetCurSel();
if (sel==LB_ERR)
ERR_MSG_RET("E_PLSAME");
line=mmstuff.GetString(sel);
get_token(line,0,mmfile);
strcpy(buf,mmfile);
p=strchr(buf,'.');
if (!p)
ERR_MSG_RET("E_ILLMML");
*p=0;
p=buf;
// while (*p && *p=='0') // skip begining zeroes
// p++;
MM_Element.Format("%s%s%d%s",MM_PREFIX,m_mmtype==0 ? "B":"W",IDTOCOD(m_mmdisplay),p);
infolist.RemoveAll();
CDialog::OnOK();
}
示例4: OnOK
// =====================================================================
void nodesel::OnOK()
// =====================================================================
{
if (m_list.GetCurSel() != LB_ERR) extract_selected();
displist.RemoveAll();
StoreInitDialogSize(DlgName,this);
CDialog::OnOK();
}
示例5: OnDefault
// ================================================
void resultfm::OnDefault()
// ================================================
{
m_edit_format.SetWindowText("ATSTI");
m_edit_tabs.SetWindowText("72,154");
resultdisp.RemoveAll();
resultdisp.AddTail("ATSTI");
resultdisp.AddTail("72,154");
resultdisp.SaveToFile("resudisp.cfg");
}
示例6: OnInitDialog
// =====================================================================
BOOL insmm::OnInitDialog()
// =====================================================================
{
int tabs[]={75,180};
int lng[]={
IDC_WAVTYPE,
IDOK,
IDCANCEL,
IDHELP,
IDC_STATIC1,
IDC_STATIC2,
IDTEST,
IDC_STATIC4,
IDC_PLAYMAIL,
IDC_PLAYLINE,
IDC_BMPTYPE,
IDC_PLAYDBLCLK,
};
CDialog::OnInitDialog();
set_dlg_language(this,DlgName,lng,sizeof(lng)/sizeof(int));
MM_Element.Empty();
infolist.RemoveAll();
if (gc.disable_insmm_items)
{
DISABLEID(IDOK);
DISABLEID(IDC_PLAYMAIL);
DISABLEID(IDC_PLAYLINE);
DISABLEID(IDC_PLAYDBLCLK);
}
TABULATE_LB(IDC_LIST);
mmstuff.RemoveAll();
UPDATE_LB(mmstuff,IDC_LIST);
OnRadioBmps();
UpdateData(0);
return TRUE;
}
示例7: OnInitDialog
// =====================================================================
BOOL nodesel::OnInitDialog()
// =====================================================================
{
_fidonumber *result;
_fidonumber number;
CString flags,bbsname,location,phone;
char buf[300];
char *p;
int ret;
int tabs[]={85,140,250,350,430};
int lng[]={
IDOK,
IDCANCEL,
IDC_STATIC1
};
CDialog::OnInitDialog();
set_dlg_language(this,DlgName,lng,sizeof(lng)/sizeof(int));
StoreOrgItemSizes(DlgName,this,DlgItemsSize,sizeof(DlgItemsSize)/sizeof(_DlgItemsSize));
TABULATE_LB(IDC_LIST);
EXTENT_LB(IDC_LIST,1000);
result=gustat.findresult;
BeginWaitCursor();
displist.RemoveAll();
for (int i=0;i<gustat.findcount;i++)
{
ret=nl_get_fido_by_number(result->zone,result->net,result->node,result->point,&number);
if (ret)
{
p=strchr(number.flags,'\n'); if (p) *p=0; flags.Format ("%s",number.flags);
p=strchr(number.bbsname,'\n'); if (p) *p=0; bbsname.Format ("%s",number.bbsname);
p=strchr(number.location,'\n'); if (p) *p=0; location.Format("%s",number.location);
p=strchr(number.phone,'\n'); if (p) *p=0; phone.Format ("%s",number.phone);
}
sprintf(buf,"%s\t%d:%d/%d.%d\t%s\t%s\t%s\t%s",
result->user,result->zone,result->net,result->node,result->point,flags,bbsname,location,phone);
displist.AddTail(buf);
result++;
}
UPDATE_LB(displist,IDC_LIST);
EndWaitCursor();
return TRUE;
}
示例8: OnOK
// =================================================================
void cfgexfr::OnOK()
// =================================================================
{
CString str;
m_edit_path.GetWindowText(str);
if (strchr(str,'\\'))
ERR_MSG_RET("E_DMNCAP");
if (strchr(str,':'))
ERR_MSG_RET("E_DMNCAP");
exfrcfg.RemoveAll();
exfrcfg.AddTail(str);
exfrcfg.AddTail(m_check_16bit.GetCheck() ? "1" : "0");
exfrcfg.SaveToFile("exfrtool.cfg");
CDialog::OnOK();
}
示例9: OnCancel
// =====================================================================
void insmm::OnCancel()
// =====================================================================
{
infolist.RemoveAll();
CDialog::OnCancel();
}