Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hide Windows mouse cursor?
#1
Is there a way to hide the windows mouse cursor when it is over a program window?
Reply
#2
Code:
´$include:'win\user32.lib'
.....
ShowCursor(0)
Antoni
Reply
#3
It seemed to me the right solution to always keep the cursor hidden in fullscreen mode and always showed while in windowed mode.
It could be scary for an user if the mouse disappears when it enters a window... If the user doesn't want to see it, he could just press ALT-Enter to switch to fullscreen at any time and hide it.
ngelo Mottola - EC++
Reply
#4
Many DirectX applications hide the mouse cursor when it is over the DirectX window. I've found that with TinyPTC, having the mouse cursor over its window slows its refresh rate down by up to 25%.
I'd knock on wood, but my desk is particle board.
Reply
#5
'$include:'win\user32.bi' and ShowCursor(0) does not seem to work.

Quote:It seemed to me the right solution to always keep the cursor hidden in fullscreen mode and always showed while in windowed mode.
It could be scary for an user if the mouse disappears when it enters a window... If the user doesn't want to see it, he could just press ALT-Enter to switch to fullscreen at any time and hide it.
So is it IMPOSSIBLE to hide the mouse cursor with your library? Because if one wanted to have a different cursor in his program, it would look bad to have the Windows one on top of it. But I guess you're right: that's what fullscreen is for.

Quote:Many DirectX applications hide the mouse cursor when it is over the DirectX window. I've found that with TinyPTC, having the mouse cursor over its window slows its refresh rate down by up to 25%.
That is a little worrying. Is that true in this case?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)