Jump to content
  • Advertisement
Sign in to follow this  
SelethD

Mouse Cursor Problems

This topic is 4829 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a windowed app. When it loads the mouse cursor looks like an hour glass, then if I move it off of my app, it reverts to a normal pointer, then if I move it back onto my app, it turns into the resize cursor, from when it passed by the app's border. How do I get control of what the mouse looks like in my app? im using VC++.NET in winXP using windows API

Share this post


Link to post
Share on other sites
Advertisement
When you create your window class using RegisterClass(Ex), there is a field that specifies the default mouse cursor. If you don't set it there, you must use SetCursor to manually set the cursor every time it enters your window.

Share this post


Link to post
Share on other sites
Cool, thanks, hey is there a way to have the mouse cursor disappear when it enters my window, and appear again when out of my window, so if I wanted to use a custom sprite for the apps mouse cursor?

Share this post


Link to post
Share on other sites
Quote:
Original post by SelethD
Cool, thanks, hey is there a way to have the mouse cursor disappear when it enters my window, and appear again when out of my window, so if I wanted to use a custom sprite for the apps mouse cursor?


SetCursor(NULL) should do that for you...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!