我用写程序,最近遇到一个问题,请教大家.
用SetCursor(HCURSOR hCursor)
设置鼠标的形状.在某些场合无效.我在MSDN上找到这样一段话:
If your application must set the cursor while it is in a window, make sure the class cursor for the specified window's class is set to NULL. If the class cursor is not NULL, the system restores the class cursor each time the mouse is moved. 意思是将原鼠标cursor设为NULL,我试了好几次,不知怎样才可以将原鼠标cursor设为NULL,或者说安上一段话的意思应该怎样做?
谢谢!
用SetCursor(HCURSOR hCursor)
设置鼠标的形状.在某些场合无效.我在MSDN上找到这样一段话:
If your application must set the cursor while it is in a window, make sure the class cursor for the specified window's class is set to NULL. If the class cursor is not NULL, the system restores the class cursor each time the mouse is moved. 意思是将原鼠标cursor设为NULL,我试了好几次,不知怎样才可以将原鼠标cursor设为NULL,或者说安上一段话的意思应该怎样做?
谢谢!
这句话的意思是,(如果你在窗口其它事件中)设置鼠标光标,那么窗口原来的光标就会对SetCursor产生影响使之失败。