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

Method AutoScroll

Source/FrameEditor.cpp:899–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899void CFrameEditor::AutoScroll(const CPoint &point)
900{
901 const int Row = GetRowFromPoint(point, true); // // //
902 const int Frames = GetSongFrameCount() + 1; // // //
903
904 if (point.y <= m_iTopScrollArea && Row > 0) {
905 m_pView->SelectPrevFrame();
906 }
907 else if (point.y >= m_iBottomScrollArea && Row < (Frames - 1)) {
908 m_pView->SelectNextFrame();
909 }
910}
911
912void CFrameEditor::OnContextMenu(CWnd* /*pWnd*/, CPoint point)
913{

Callers

nothing calls this directly

Calls 2

SelectPrevFrameMethod · 0.80
SelectNextFrameMethod · 0.80

Tested by

no test coverage detected