public:
HCURSOR m_hCursor;
CDraw006View::CDraw006View()
{
m_hCursor = AfxGetApp ()->LoadStandardCursor (IDC_CROSS);
}
void CDraw006View::OnMouseMove(UINT nFlags, CPoint point)
{ ::SetCursor (m_hCursor); }
移动时鼠标指针闪烁,单击过会保持上一次的变化。
要怎么样能像画图那样?
BOOL CDraw006View::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
// TODO: Add your message handler code here and/or call default
SetCursor(m_hCursor);
//return CView::OnSetCursor(pWnd, nHitTest, message);
return TRUE;
}
呃。。。RETURN为TURE就好了。