Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Resource ID for standard "drop" cursor?

Resource ID for standard "drop" cursor?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Fleming
    wrote on last edited by
    #1

    I know that you can use LoadCursor(NULL, IDC_WAIT) to load the standard hourglass cursor. The help that came with VC6 shows several other standard cursor IDs (such as a hand, a slashed circle, resizing arrows, etc) but I don't see one to show a cursor for dropping (such as moving a file to Explorer) -- an arrow with a little plus-sign. Does anyone know an ID for that? Is there one, or do I have to create my own cursor image and load that? It seems like this one would be standard, but I don't see an ID for it. Thanks in advance.

    H 1 Reply Last reply
    0
    • D David Fleming

      I know that you can use LoadCursor(NULL, IDC_WAIT) to load the standard hourglass cursor. The help that came with VC6 shows several other standard cursor IDs (such as a hand, a slashed circle, resizing arrows, etc) but I don't see one to show a cursor for dropping (such as moving a file to Explorer) -- an arrow with a little plus-sign. Does anyone know an ID for that? Is there one, or do I have to create my own cursor image and load that? It seems like this one would be standard, but I don't see an ID for it. Thanks in advance.

      H Offline
      H Offline
      Henry Jacobs
      wrote on last edited by
      #2

      If you use OLE it will display those cursors for you (I think). Otherwise you can find them in ole32.dll. You can either extract the cursors or you can...

      HMODULE hDll = LoadLibrary(TEXT("ole32.dll"));
      HCURSOR hCursor = LoadCursor(hDll, id);

      The resource IDs are the following:

      #define IDC_DRAG_CANNOT 1
      #define IDC_DRAG_MOVE 2
      #define IDC_DRAG_COPY 3
      #define IDC_DRAG_LINK 4

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups