Solved

Changing drag/drop cursor?!??!

Posted on 1997-08-05
2
585 Views
Last Modified: 2013-11-20
I am trying to use the MFC OLE drag&drop mechanism (OnDragEnter/OnDragOver...).  I can't figure out how to provide my own drag cursor.  I have even provided my own CDropSource object and overrode GiveFeedback() to try and hook the right place.  I am using a CImageList and so I call CImageList::SetDragCursorImage() inside of GiveFeedback(), but the cursor never changes.

I could be going about this all wrong, I have tried many things.  But they never have any effect on the cursor what-so-ever.

Does anyone have some sample source that does this? How about a good reference for some decent help or docs on this?

HELP!!!!
0
Comment
Question by:Vance Kessler
2 Comments
 
LVL 8

Accepted Solution

by:
gelbert earned 200 total points
ID: 1303062
I think that you are going into right direction but you have to call Win API ShowCursor( FALSE ) to hide existing cursor. This should work for CImageList.
0
 

Author Comment

by:Vance Kessler
ID: 1303063
Well, I have tried that.  Sorry I didn't mention that in the orignal post (but I don't think there is room to fit in all the things I have tried).  And when I called it it just turns off the cursor so that I have NO cursor.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now