第七章5.txt

来自「本书在复习C++基础知识后」· 文本 代码 · 共 26 行

TXT
26
字号
void CEx_A7View::OnMouseMove(UINT nFlags, CPoint point) 
{
		CDC* pDC		= this->GetDC();
	CString			strPos;
	strPos.Format( "%d, %d", point.x, point.y );
		if ( m_bCursorFirst )
		{
			m_bCursorFirst	= FALSE;
			m_ptCurPos		= point;
			DrawCursor( pDC, m_ptCurPos );
		DrawInfoWnd( pDC, m_ptCurPos, strPos );
		} else
		{
			DrawCursor( pDC, m_ptCurPos );
		if ( m_dcMem.m_hDC )
		{
			pDC->BitBlt( m_ptCurPos.x, m_ptCurPos.y - 15, 80, 15, 
				&m_dcMem, m_ptCurPos.x, m_ptCurPos.y - 15, SRCCOPY );
		}
			m_ptCurPos		= point;
			DrawCursor( pDC, m_ptCurPos );
		DrawInfoWnd( pDC, m_ptCurPos, strPos );
		}
		CView::OnMouseMove(nFlags, point);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?