Cursor Loading and changing in Win32

This is a discussion on Cursor Loading and changing in Win32 within the C++ Programming forums, part of the General Programming Boards category; I am making a strategy game, and i have almost all of the basic stuff down right now, and i ...

Cursor Loading and changing in Win32

I am making a strategy game, and i have almost all of the basic stuff down right now, and i was wondering one thing.....how do you change the cursor, mid-program? without having to kill the window and reload it. Is it even possible? or do I have to make the cursor non-visible, and just have a picture?

I'm going to take a shot in the dark and say a function called "SetCursor()"

Yes, it seems i'm correct... geez, those functions are so cunningly named. You need a window? CreateWindow(). Thread? CreateThread(). Find a window? FindWindow(). A new cursor? LoadCursor()/SetCursor().

Originally posted by Eibro I'm going to take a shot in the dark and say a function called "SetCursor()"

Yes, it seems i'm correct... geez, those functions are so cunningly named. You need a window? CreateWindow(). Thread? CreateThread(). Find a window? FindWindow(). A new cursor? LoadCursor()/SetCursor().

Would you rather them be named Apply_New_Cur_Val_Ex_QR3453(), etc? I also love how the argument lists are so simple to remember...each set of functions that does roughly the same types of things all have mostly the same arguments, usually in the same order...