📄 第七章5.txt
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -