|
From: James G. <Jam...@Cl...> - 2001-01-02 14:35:02
|
See http://msdn.microsoft.com/library/psdk/winui/cursors_2mcy.htm <http://msdn.microsoft.com/library/psdk/winui/cursors_2mcy.htm> Especially note : 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. The cursor is not shown on the screen if the internal cursor display count is less than zero. This occurs if the application uses the <http://msdn.microsoft.com/library/psdk/winui/cursors_1gky.htm> ShowCursor function to hide the cursor more times than to show the cursor. Regards, James. -----Original Message----- From: Elias Pschernig [mailto:Eli...@ao...] Sent: Friday, December 29, 2000 6:52 PM To: dev...@li... Subject: Re: [Dev-C++] Change the cursor... Hi, I would like to know how to change the cursor in a simple dialog box based program. I know that I must use SetCursor( ) and LoadCursor( ) and ShowCursor, but I can't seem to get it working. I put this in the dialog box's initinstance: SetCursor( LoadCursor(NULL, IDC_WAIT) ); ShowCursor(TRUE); But it doesn't work, the wait curor doesn't show up. Can any one help me? Thank you in advance. I'm not using C++, but in C i have a message WM_SETCURSOR sent to my dialog procedure, maybe this is what you need ? Just put your code as response to that message and the cursor changes... * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This electronic message and any attachment is intended to be read by the named addressee(s) only. Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its use, disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message Whilst C. & J. Clark International Limited has taken steps to prevent the transmission of computer viruses with electronic mail, responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. C. & J. Clark International Limited Registered in England and Wales Company No. 141015 Registered Office: 40 High Street, Street, Somerset BA16 0YA Telephone: +44 (0) 1458 443131 Fax: +44 (0) 1458 447547 |