TabRecord* ArrayHashTable:: Search (int key1) { pos = HashFunc(key1)%size; freePos = -1; for(int i=0; i<size; i++) if(recs[pos]==0) return 0; if (recs[pos]->GetKey()==key1) return recs[pos]; if((recs[pos]==pMark) && (freePos==-1)) freePos = pos; pos = SetNextPos(pos); return 0; }
void CScrollTestDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { __super::OnHScroll(nSBCode, nPos, pScrollBar); SetNextPos(nSBCode, nPos, pScrollBar); }