void MimeHeader::DeleteField(const AnsiString &fieldName) { MimeField *field = GetField(fieldName); if (field) DeleteField(field); }
void mmCustomFieldListDialog::OnMenuSelected(wxCommandEvent& event) { switch(event.GetId()) { case MENU_NEW_FIELD: AddField(); break; case MENU_EDIT_FIELD: EditField(); break; case MENU_DELETE_FIELD: DeleteField(); break; case MENU_UPDATE_FIELD: UpdateField(); break; default: break; } }
void CBibitemView::OnKeydownListFields(NMHDR* pNMHDR, LRESULT* pResult) { LV_KEYDOWN* pLVKeyDow = (LV_KEYDOWN*)pNMHDR; switch (pLVKeyDow->wVKey) { case VK_DELETE: if (m_SelField != -1) DeleteField(m_SelField); break; } *pResult = 0; }
void ExtProcesstFieldVars(pentry entries[], int x) { register int i; unsigned uGroupOp=0; for(i=0;i<x;i++) { if(!strcmp(entries[i].name,"uTargetTable")) sscanf(entries[i].val,"%u",&uTargetTable); else if(!strcmp(entries[i].name,"uModBSField")) uModBSField=1; else if(!strncmp(entries[i].name,"CB",2)) { //insider xss protection if(guPermLevel<10) continue; unsigned uCBField=0; sscanf(entries[i].name,"CB%u",&uCBField); if(uCBField) { if(!strcmp(gcFunction,"tFieldTools")) { if(!strcmp(gcCommand,LANG_NB_DELETE)) { DeleteField(uCBField); uGroupOp++; } } } } } if(uGroupOp) tField("Group operation done"); }//void ExtProcesstFieldVars(pentry entries[], int x)
void CBibitemView::OnFieldlistPopupRemove() { DeleteField(m_SelField); }