MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnBnClickedSongUp

Method OnBnClickedSongUp

Source/ModulePropertiesDlg.cpp:259–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void 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
275void CModulePropertiesDlg::OnBnClickedSongDown()
276{

Callers

nothing calls this directly

Calls 2

SwapSongsMethod · 0.80
ModifyIrreversibleMethod · 0.80

Tested by

no test coverage detected