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

Method OnLButtonDblClk

Source/FrameEditor.cpp:865–883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865void CFrameEditor::OnLButtonDblClk(UINT nFlags, CPoint point)
866{
867 // Select channel and enable edit mode
868
869 const int Channel = GetChannelFromPoint(point);
870 const int NewFrame = GetRowFromPoint(point, true); // // // allow one-past-the-end
871
872 SetEditFrame(NewFrame); // // //
873
874 if (Channel >= 0)
875 m_pView->SelectChannel(Channel);
876
877 if (m_bInputEnable)
878 m_pView->SetFocus();
879 else
880 EnableInput();
881
882 CWnd::OnLButtonDblClk(nFlags, point);
883}
884
885BOOL CFrameEditor::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
886{

Callers

nothing calls this directly

Calls 2

SetFocusMethod · 0.80
SelectChannelMethod · 0.45

Tested by

no test coverage detected