我用IDC_CROSS,
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_CROSS));
在WIN9x/WIN2K里可以,在XP里就成了“I”了。什么原因呢?

解决方案 »

  1.   

    sounds weird, what is the return value from AfxGetApp()->LoadStandardCursor(IDC_CROSS)?what about the return value of SetCursor(...)?
      

  2.   

    To saucer(思归):I don't have XP OS yet. I sent my software to my customers, they found this problem. One programmer did not believe it, he tried VB, the same problem found. Sigh, it seems I have to got XP ASAP.
      

  3.   

    有可能是win2k和xp定义不一样,呵呵,你试试 IDC_IBEAM 是不是变成 IDC_CROSS 了? 最后在xp下详细测一下。
      

  4.   

    首先是不是在所有的 XP 上都是这样呢?因为IDC_CROSS 对应的鼠标指针在控制面板里可以定义的。其次你可以跟踪一下 Windows 消息,可能有别的消息触发鼠标指针的改变。