Resource ID for standard "drop" cursor?
-
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.
-
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.
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