PDA

Click to See Complete Forum and Search --> : DirectX 7 – Mouse cursor.


...:::Circle:::...
Mar 19th, 2001, 03:35 AM
Just a small DirexctX 7 question. I’m making a samll game using Direct Draw. Do someone now how to make my cursor disappear when my game is running, and make it come back when it ends.

PsychoMark
Mar 19th, 2001, 04:58 AM
If you want to use the mouse in your game too, I suggest taking a look at DirectInput (since that automatically hides the cursor so you can draw you own). If you don't want to use the mouse and just want to hide it, look up the ShowCursor API call (sorry, I don't have the API Viewer right now).

You can call ShowCursor(0) to hide it and ShowCursor(1) to show it again after you program has finished.

If you need more help, post a reply and I'll check it when I'm at home again...

Good luck!

...:::Circle:::...
Mar 20th, 2001, 07:21 AM
Thank you. You made my day.