¤wîndows¤îs¤actîng¤up¤agaîn¤
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?
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
January 15, 2001 03:22 PM
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
January 15, 2001 03:52 PM
Probably when you registered your window class you didn''t set the hCursor member.
...
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
...
RegisterClass(&wndclass);
...
-Mike
...
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
...
RegisterClass(&wndclass);
...
-Mike
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:
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
in my WndProc callback function, I set the desired cursor when I receive the WM_SETCURSOR message. Here is the code:
|
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
Thanks. I''ll try that.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.
Remember to set the cursor to NULL in your WinClass if you want to set your cursors manually during run time.
http://www.gdarchive.net/druidgames/
http://www.gdarchive.net/druidgames/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement