RE: Re [Dev-C++] Change the cursor...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: James G. <Jam...@Cl...> - 2001-01-02 14:49:57
|
No, its not in the wrong place. Just set the classes cursor to NULL in the
struct you use to create the dialog. Otherwise every time you move the mouse
you are reloading and assigning the cursor.
Regards,
James.
-----Original Message-----
From: SpiderMan [mailto:Spi...@pr...]
Sent: Friday, December 29, 2000 11:44 PM
To: dev...@li...
Subject: Re [Dev-C++] Change the cursor...
Hi, thanks for the response! I figured out that the code was right, just
put in the wrong place. I found that I can load all the stock cursors by
responding to WM_MOUSEMOVE. Thanks for the help : )
----- Original Message -----
From: <mailto:Eli...@ao...> Elias Pschernig
To: <mailto:dev...@li...>
dev...@li...
Sent: Friday, December 29, 2000 10:52 AM
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...
_____
<http://www.privacyx.com/newads/click.php3?bannerID=7>
Link is external to the Privacyx.com System
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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
|