Jump to content
  • Advertisement

Archived

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

smart_idiot

¤wîndows¤îs¤actîng¤up¤agaîn¤

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

My windows program works fine, every thing works, but when I move the cursor over it, the cursor changes to an hour glass. How does windows determine if my program is busy? Can I force it to show an arrow?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
well , that''s an easy one , windows does not determine which cursor to use , you have to say windows which one should be used , for specific info you should search in docs , it all depends on the language you''re programming in and stuff , well , have fun boys

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
did u guys screw up yer winclasses?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Probably when you registered your window class you didn''t set the hCursor member.

...
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
...
RegisterClass(&wndclass);
...

-Mike

Share this post


Link to post
Share on other sites
My cursor gets changed to hour glass, even though I specify IDC_ARROW when registering my window class. Here is a solution that works for me:

in my WndProc callback function, I set the desired cursor when I receive the WM_SETCURSOR message. Here is the code:

  
case WM_SETCURSOR:
SetCursor( LoadCursor(NULL,IDC_ARROW) );
ShowCursor( TRUE );


IDC_ARROW can be replaced with your own cursor image (in which case you should specify your HINSTANCE in place of NULL), or you can use some of the other predefined ones, such as:

IDC_APPSTARTING
IDC_ARROW
IDC_CROSS
IDC_HAND
IDC_HELP
IDC_IBEAM

Share this post


Link to post
Share on other sites
Guest Anonymous Poster



did u guys screw up yer winclasses?




Yes.


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!