Skip to main content
gamedev.net
🔒 Locked

blinking cursor

Started by mike25025 2 replies 750+ views
Original Post
mike25025
mike25025
when runing in a window my cursor blinks i know this has something to do with the shadow i would like to know how to turn the shadow off without going to the control panel
exa_einstein
exa_einstein
maybe you are using ShowCursor(true) and(false) very frequently, just check it...

edit: or just try to set anotjer cursor (loadCursor etc...)

[edited by - exa_einstein on February 4, 2004 6:04:07 AM]
When I was younger, I used to solve problems with my AK-47. Times have changed. I must use something much more effective, killing, percise, pernicious, efficient, lethal and operative. C++ is my choice.
iNsAn1tY
iNsAn1tY
To turn off the mouse shadow, you need to use the Win32 SystemParametersInfo function with the SPI_SETCURSORSHADOW argument, like so:
SystemParametersInfo(SPI_SETCURSORSHADOW, 0, TRUE, 0); 
Send 0 for the last parameter if don''t want to permanently effect the change, and don''t forget to change it back for the rest of the user''s session when your program is finished ...


Windows 95 - 32 bit extensions and a graphical shell for a 16 bit patch
to an 8 bit operating system originally coded for a 4 bit microprocessor,
written by a 2 bit company that can''t stand 1 bit of competition.
My opinion is a recombination and regurgitation of the opinions of those around me. I bring nothing new to the table, and as such, can be safely ignored.[ Useful things - Firefox | GLee | Boost | DevIL ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.