Menu

cursor help

2002-12-19
2012-09-26
  • Nobody/Anonymous

    How do I add a cursor file to a project?

     
    • upcase

      upcase - 2002-12-19

      Hi there!
      What do you mean by "add a cursor to a project file"? Add a cursor as a resource?
      If so, I guess you could add it to your resource file as an icon and set the cursor to use this icon at runtime.Or try to include it with CURSOR instead of ICON.
      By the way: Load the cursor with
      HCURSOR LoadCursor(
          HINSTANCE  hinst,    // handle of application instance
          LPCTSTR  lpszCursor     // name string or cursor resource identifier 
      );
      and set it with
      SetCursor...

      Bye!

       
    • Nobody/Anonymous

      Here's what I've done
      1. I copied hlink.cur to my project directory (Just like I do with icons)
      2. I included: IDC_CURSOR1CURSOR "hlink.cur" in my res.rc file.
      3. I included #define IDC_CURSOR1100 in my resource.h file
      When Itry to compile I get the following message:
      [Resource Error] can't open cursor file 'hlink.cur': No such file or directory
      Any suggestions are appreciated!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.