UINT CF_PREFERREDDROPEFFECT = RegisterClipboardFormat(CFSTR_PREFERREDDROPEFFECT);
if(IsClipboardFormatAvailable(CF_PREFERREDDROPEFFECT))
{
if (OpenClipboard())
{
HANDLE hglb = GetClipboardData(CF_PREFERREDDROPEFFECT);
DWORD dwEffects = *(DWORD*) GlobalLock(hglb);
#define DROPEFFECT_NONE ( 0 )
if(dwEffects & DROPEFFECT_MOVE)
MessageBox( "CUT ");
else if(dwEffects & DROPEFFECT_COPY)
MessageBox( "COPY ");
GlobalUnlock(hglb);
CloseClipboard();
}
}
if(IsClipboardFormatAvailable(CF_PREFERREDDROPEFFECT))
{
if (OpenClipboard())
{
HANDLE hglb = GetClipboardData(CF_PREFERREDDROPEFFECT);
DWORD dwEffects = *(DWORD*) GlobalLock(hglb);
#define DROPEFFECT_NONE ( 0 )
if(dwEffects & DROPEFFECT_MOVE)
MessageBox( "CUT ");
else if(dwEffects & DROPEFFECT_COPY)
MessageBox( "COPY ");
GlobalUnlock(hglb);
CloseClipboard();
}
}