rt

解决方案 »

  1.   

    假设m_ImageRect是一个图象框.移入框中把光标改成十字
    if(m_ImageRect.PtInRect(point))
          SetCursor(LoadCursor(0,IDC_CROSS));
      

  2.   

    The WM_NCMOUSEMOVE message is posted to a window when the cursor is moved within the nonclient area of the window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. 
      

  3.   

    可以用SetSystemCursor();直接将系统默认的鼠标形状改变。
    程序结束时在还原回来。
      

  4.   

    1.SetCapture在整个窗口捕获鼠标消息
    2.判断鼠标的point
    3.条件符合就SetCursor...例如:SetCursor(LoadCursor(NULL,IDC_CROSS)
    4.ReleaseCapture
      

  5.   

    处理WM_SETCURSOR消息BOOL CMyWnd::OnSetCursor( CWnd* pWnd, UINT nHitTest, UINT message )
    {
       if(nHitTest==HTLEFT)//   In the left border of the window.
       {
          SetCursor(...);
       }
       else if(nHitTest==HTRIGHT)//   In the right border of the window.
       {
          SetCursor(...);
       }
       ....   }