コード例 #1
0
void CmusikTrackCtrl::OnMouseMove(UINT nFlags, CPoint point)
{
	if ( m_Player && m_LockIfNotPlaying && !m_Player->IsPlaying() )
		return;

    if ( nFlags & MK_LBUTTON && m_IsCapturing )
		SetPosFromMouse();
}
コード例 #2
0
ファイル: Display.cpp プロジェクト: tlorach/nvGraphy
void TLDisplay::CleanupVars()
{
	lastATIColorCandidate = REDDISH;
	lastNVColorCandidate = GREENISH;
    graphSelected = -1;
    frameSelected = -1;
    percentH = 100;
    hfont = NULL;
    rtcode.left = rtcode.bottom = rtcode.top = rtcode.right = 0;
    bmpDC = NULL;
    oldbrush = NULL;
    oldpen = NULL;
    oldbmp = NULL;
    oldfont = NULL;

    selectedRangeAnnot = -1;
    maxVal = minVal = 0;
    bFirstWheel = true;
    ClearPickInfo();
    selRangeX[0] = selRangeX[1] = 0;
	Margin = 10;
	LevelHeigth = 16;

	hbitmap = NULL;
	bmpW = bmpH = 0;
    bmpX = bmpY = 0;

	MouseVec[0] = 0;
	MouseVec[1] = 0;
	Offset[0] = 0;
	Offset[1] = 0;
    minScaleX = minScaleY = 0.00000001f;
	ScaleX = 0.4;
	ScaleY = 0.4;
	ScaleMouseX = 0;
	ScaleMouseY = 0;
	FOV1[0] = 0;
	FOV1[1] = 0;

	NumFrames = 0;

	SetPosFromMouse(0,0);
}
コード例 #3
0
void CmusikTrackCtrl::OnLButtonDown(UINT nFlags, CPoint point)
{
	if ( m_Player && m_LockIfNotPlaying && !m_Player->IsPlaying() )
		return;

	if ( !m_IsCapturing )
	{
		m_LeftDown = true;
		SetCapture();
		SetCursor( NULL );

		m_IsCapturing = true;
	}

	GetCursorPos( &m_Cursor );
	SetPosFromMouse();

	OnBeginDrag();
}