From: Raghav on
Hello everybody,

I am trying to show a custom cursor during a drag operation.
For this i derived a class from the COleDropSource and overridden the
GiveFeedback() method in the following way,

SCODE SwpTBDropSource::GiveFeedback(DROPEFFECT dropEffect)
{
if(dropEffect & DROPEFFECT_COPY)
{
SetCursor(m_hIcon); // m_hIcon and m_hNAIcon are both valid.
return S_OK;
}
else
SetCursor(m_hNAIcon);
return S_OK;
}

and i passed the object of this to DoDragDrop function.

The effect is that, when i drag the object over some menu bar or some
windows which dont accept any drop, the cursor changes to default
DROPEFFECT_NONE cursor. Can anyone explain why this happens? and also how to
solve this problem?

rgds
Raghav.