Thread: Cursor Loading and changing in Win32

  1. #1
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    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?
    int a; don't make a program without it.

  2. #2
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    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().

    http://msdn.microsoft.com/library/de..._setcursor.asp

  3. #3
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    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().

    http://msdn.microsoft.com/library/de..._setcursor.asp
    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...

  4. #4
    the Win32 API is my favorite Microsoft made product. Next to windows of course. It'd be pretty bad to use an API for something that doesn't exist.

    edit: BTW, nice sig Ken

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Changing windows without changing?
    By Lionmane in forum Windows Programming
    Replies: 7
    Last Post: 10-19-2005, 11:41 AM
  2. compiling and executing issue with lcc win32
    By GanglyLamb in forum C Programming
    Replies: 10
    Last Post: 12-22-2004, 02:24 PM
  3. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  4. Changing progress bars in win32....
    By jverkoey in forum Windows Programming
    Replies: 6
    Last Post: 04-27-2003, 03:32 AM
  5. Edit control..win32..Changing the text?
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 12-19-2001, 12:41 AM