src/osd/winui/columnedit.c
| r7706 | r7707 | |
| 38 | 38 | LV_ITEM lvi; |
| 39 | 39 | TCHAR buf[80]; |
| 40 | 40 | //int nFrom, nTo; |
| 41 | | int res; |
| 42 | 41 | BOOL b_res; |
| 43 | 42 | |
| 44 | 43 | //nFrom = ListView_GetItemCount(hFrom); |
| r7706 | r7707 | |
| 61 | 60 | // Add this item to the Show and delete it from Available |
| 62 | 61 | b_res = ListView_DeleteItem(hFrom, lvi.iItem); |
| 63 | 62 | lvi.iItem = ListView_GetItemCount(hTo); |
| 64 | | res = ListView_InsertItem(hTo, &lvi); |
| 63 | (void)ListView_InsertItem(hTo, &lvi); |
| 65 | 64 | ListView_SetItemState(hTo, lvi.iItem, |
| 66 | 65 | LVIS_FOCUSED | LVIS_SELECTED, |
| 67 | 66 | LVIS_FOCUSED | LVIS_SELECTED); |
| r7706 | r7707 | |
| 76 | 75 | LV_ITEM lvi; |
| 77 | 76 | TCHAR buf[80]; |
| 78 | 77 | int nMaxpos; |
| 79 | | int res; |
| 80 | 78 | BOOL b_res; |
| 81 | 79 | |
| 82 | 80 | lvi.iItem = ListView_GetNextItem(hWnd, -1, LVIS_SELECTED | LVIS_FOCUSED); |
| r7706 | r7707 | |
| 98 | 96 | // Add this item to the Show and delete it from Available |
| 99 | 97 | b_res = ListView_DeleteItem(hWnd, lvi.iItem); |
| 100 | 98 | lvi.iItem += (bDown) ? 1 : -1; |
| 101 | | res = ListView_InsertItem(hWnd,&lvi); |
| 99 | (void)ListView_InsertItem(hWnd,&lvi); |
| 102 | 100 | ListView_SetItemState(hWnd, lvi.iItem, |
| 103 | 101 | LVIS_FOCUSED | LVIS_SELECTED, |
| 104 | 102 | LVIS_FOCUSED | LVIS_SELECTED); |
| r7706 | r7707 | |
| 130 | 128 | int i, nCount = 0; |
| 131 | 129 | LV_ITEM lvi; |
| 132 | 130 | DWORD dwShowStyle, dwAvailableStyle, dwView; |
| 133 | | int res; |
| 134 | 131 | BOOL b_res; |
| 135 | 132 | |
| 136 | 133 | switch (Msg) |
| r7706 | r7707 | |
| 183 | 180 | if (shown[order[i]]) |
| 184 | 181 | { |
| 185 | 182 | lvi.iItem = nShown; |
| 186 | | res = ListView_InsertItem(hShown, &lvi); |
| 183 | (void)ListView_InsertItem(hShown, &lvi); |
| 187 | 184 | nShown++; |
| 188 | 185 | } |
| 189 | 186 | else |
| 190 | 187 | { |
| 191 | 188 | lvi.iItem = nAvail; |
| 192 | | res = ListView_InsertItem(hAvailable, &lvi); |
| 189 | (void)ListView_InsertItem(hAvailable, &lvi); |
| 193 | 190 | nAvail++; |
| 194 | 191 | } |
| 195 | 192 | } |
src/osd/winui/directories.c
| r7706 | r7707 | |
| 215 | 215 | LV_ITEM Item; |
| 216 | 216 | HWND hList = GetDlgItem(hDlg, IDC_DIR_LIST); |
| 217 | 217 | HWND hCombo = GetDlgItem(hDlg, IDC_DIR_COMBO); |
| 218 | | int res; |
| 219 | 218 | BOOL b_res; |
| 220 | 219 | |
| 221 | 220 | /* Remove previous */ |
| r7706 | r7707 | |
| 231 | 230 | if (IsMultiDir(nType)) |
| 232 | 231 | { |
| 233 | 232 | Item.pszText = (TCHAR*) TEXT(DIRLIST_NEWENTRYTEXT); |
| 234 | | res = ListView_InsertItem(hList, &Item); |
| 233 | (void)ListView_InsertItem(hList, &Item); |
| 235 | 234 | for (i = DirInfo_NumDir(g_pDirInfo, nType) - 1; 0 <= i; i--) |
| 236 | 235 | { |
| 237 | 236 | Item.pszText = DirInfo_Path(g_pDirInfo, nType, i); |
| 238 | | res = ListView_InsertItem(hList, &Item); |
| 237 | (void)ListView_InsertItem(hList, &Item); |
| 239 | 238 | } |
| 240 | 239 | } |
| 241 | 240 | else |
| 242 | 241 | { |
| 243 | 242 | Item.pszText = DirInfo_Dir(g_pDirInfo, nType); |
| 244 | | res = ListView_InsertItem(hList, &Item); |
| 243 | (void)ListView_InsertItem(hList, &Item); |
| 245 | 244 | } |
| 246 | 245 | |
| 247 | 246 | /* select first one */ |