Sign in to follow this  
SelethD

Mouse Cursor Problems

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this