| 181 | | mInitialDir = GetFolderPath(); |
|---|
| 182 | | // /\ 4.2: undocumented, but non-implementation |
|---|
| 183 | | CString strItemText; |
|---|
| 184 | | // Could this iteration code be cleaner? |
|---|
| 185 | | for (int nItem = wndLst1->GetNextItem(-1,LVNI_SELECTED); |
|---|
| 186 | | nSelected-- > 0; nItem = wndLst1->GetNextItem(nItem, LVNI_SELECTED)) |
|---|
| 187 | | { |
|---|
| 188 | | strItemText = wndLst1->GetItemText(nItem,0); |
|---|
| 189 | | if (mInitialDir.Right(1) == _T("\\")) |
|---|
| 190 | | strItemText = mInitialDir + strItemText; |
|---|
| 191 | | else |
|---|
| 192 | | strItemText = mInitialDir + _T("\\") + strItemText; |
|---|
| 193 | | |
|---|
| | 181 | POSITION pos = GetStartPosition(); |
|---|
| | 182 | while( pos ) |
|---|
| | 183 | { |
|---|
| | 184 | CString strItemText(GetNextPathName(pos)); |
|---|
| | 185 | //implement ur fn to open the file accordingly |
|---|