void CTestCursorDlg::OnLButtonUp(UINT nFlags, CPoint point)
{
 // TODO: Add your message handler code here and/or call default
 SetClassLong(m_hWnd,GCL_HCURSOR,(long)m_hCursor);
 CDialog::OnLButtonUp(nFlags, point);
}

void CTestCursorDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
 // TODO: Add your message handler code here and/or call default
 m_hCursor=(HCURSOR)GetClassLong(m_hWnd,GCL_HCURSOR);
 SetClassLong(m_hWnd,GCL_HCURSOR,(long)(LoadCursor(NULL,IDC_CROSS)));
 CDialog::OnLButtonDown(nFlags, point);
}

相关文章:

  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-11-11
  • 2021-12-11
  • 2022-12-23
猜你喜欢
  • 2021-09-11
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
相关资源
相似解决方案