Mouse Cursor Problems

Started by
2 comments, last by DaBono 18 years, 11 months ago
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
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.
"Walk not the trodden path, for it has borne it's burden." -John, Flying Monk
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?
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...

This topic is closed to new replies.

Advertisement