Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Zoomby

Get rid of hourglass cursor

This topic is 5493 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

hi! how can I get rid of the hourglass cursor in a windowed directX application? I set the cursor to IDC_ARROW in the window class, but when I start the app there is always a hourglass. Only after minimizing the window a few times the arrow cursor appears. (I''m using a standard game loop within the message pump) bye chris

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
how did you solve it?

Share this post


Link to post
Share on other sites
ok, here''s the problem & solution.
I wanted to remove the cursor when windowed mode is true. To do it you can use the WM_SETCURSOR message in the Window Proc.
The mistake was to return true, even if SetCursor(NULL) wasn''t called.
See the code below.

Bye
Chris




//wrong

case WM_SETCURSOR:
if (!windowed)
{
SetCursor(NULL);
}
return TRUE;

//------------------------------------------------



//right

case WM_SETCURSOR:
if (!windowed)
{
SetCursor(NULL);
return TRUE;
}
break;



Share this post


Link to post
Share on other sites

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