case WM_LBUTTONDOWN:
SetCursor(IDC_ARROW);
break;
SetCursor的参数不能为IDC_ARROW.?
那我要点击后,改变鼠标光标,标准做法是啥?

解决方案 »

  1.   

    [in] Handle to the cursor. The cursor must have been created by the CreateCursor function or loaded by the LoadCursor or LoadImage function. If this parameter is NULL, the cursor is removed from the screen. 
    Windows 95: The width and height of the cursor must be the values returned by the GetSystemMetrics function for SM_CXCURSOR and SM_CYCURSOR. In addition, either the cursor bit depth must match the bit depth of the display or the cursor must be monochrome. SetCursor函数不能直接使用资源ID,最好使用LoadCursor 或LoadImage 函数,
      

  2.   

    ::SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
      

  3.   

    case WM_LBUTTONDOWN:
    SetCursor(IDC_ARROW);
    break;
    只在WM_LBUTTONDOWN有效果,消息结束就无效了.(由于是瞬间动作所以好象没发生变化)