Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1022389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:27:29+00:00 2026-05-16T11:27:29+00:00

OK i have a game when person loses ill set a different cursor. i

  • 0

OK i have a game when person loses ill set a different cursor. i used the setcursro with loadcusor and WM_SETCURSOR. the problem is that my default cursor which i hae set it where i register my window, it changes to hour glass until the person loses than it changes to the cursor i have set it to. i found that when i use the WM_SETCURSOR it changes the default cusor to hour glass until i set it to a different cursor when person loses. im using win32
any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:27:30+00:00Added an answer on May 16, 2026 at 11:27 am

    Generally if you’re going to change cursors much, you want to do something like:

    First we initialize the cursors we’ll use:

    HCURSOR cursors[3];
    
    cursors[0] = LoadCursor(NULL, IDC_ARROW);    // default cursor
    cursors[1] = LoadCursor(NULL, IDC_CROSS);    // other cursor
    cursors[2] = LoadCursor(NULL, IDC_WAIT);     // wait cursor
    
    int current_cursor = 0;
    

    When we want to change the cursor we just pick the one we want:

    current_cursor = 1;
    

    And our WM_SETCURSOR handler looks something like this:

    case WM_SETCURSOR:
        SetCursor(cursors[current_cursor]);
        return TRUE;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a game that uses GLUT, OpenGL and FMOD. The problem is
I have an OpenGL ES game that I am hacking together. One part of
I have a game that I have made in C# and it installs and
I want to make a first person 3d game but I can't set the
I have a silly little game that I made just for myself, but I
I have a game that I wrote. I am about ready to call it
I have an game application I have written for Windows Mobile and I want
I have a game in which you can score from -40 to +40 on
I have a little game written in C#. It uses a database as back-end.
I have my own game engine using C++ and OpenGL, but I have models

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.