| 257 | } |
| 258 | |
| 259 | void CModulePropertiesDlg::OnBnClickedSongUp() |
| 260 | { |
| 261 | unsigned Song = m_iSelectedSong; |
| 262 | if (Song <= 0) |
| 263 | return; |
| 264 | |
| 265 | m_pModule->SwapSongs(Song, Song - 1); |
| 266 | m_pDocument->ModifyIrreversible(); // // // |
| 267 | m_pDocument->UpdateAllViews(NULL, UPDATE_TRACK); |
| 268 | |
| 269 | m_cListSongs.SetItemText(Song, 0, GetSongString(Song)); |
| 270 | m_cListSongs.SetItemText(Song - 1, 0, GetSongString(Song - 1)); |
| 271 | |
| 272 | SelectSong(Song - 1); |
| 273 | } |
| 274 | |
| 275 | void CModulePropertiesDlg::OnBnClickedSongDown() |
| 276 | { |
nothing calls this directly
no test coverage detected