implementation of IDropSource interface More...
#include <dragdropimpl.h>
Public Member Functions | |
IDropSourceImpl () | |
virtual | ~IDropSourceImpl () |
virtual HRESULT STDMETHODCALLTYPE | QueryContinueDrag (BOOL fEscapePressed, DWORD grfKeyState) |
virtual HRESULT STDMETHODCALLTYPE | GiveFeedback (DWORD dwEffect) |
Public Attributes | |
bool | m_bDropped |
implementation of IDropSource interface
Definition at line 50 of file dragdropimpl.h.
IDropSourceImpl::IDropSourceImpl | ( | ) | [inline] |
Definition at line 60 of file dragdropimpl.h.
: super(IID_IDropSource), m_cRefCount(0), m_bDropped(false) { }
virtual IDropSourceImpl::~IDropSourceImpl | ( | ) | [inline, virtual] |
Definition at line 67 of file dragdropimpl.h.
{}
STDMETHODIMP IDropSourceImpl::GiveFeedback | ( | DWORD | dwEffect ) | [virtual] |
Definition at line 244 of file dragdropimpl.cpp.
{
return DRAGDROP_S_USEDEFAULTCURSORS;
}
STDMETHODIMP IDropSourceImpl::QueryContinueDrag | ( | BOOL | fEscapePressed, |
DWORD | grfKeyState | ||
) | [virtual] |
Definition at line 228 of file dragdropimpl.cpp.
References m_bDropped.
{ if (fEscapePressed) return DRAGDROP_S_CANCEL; if (!(grfKeyState & (MK_LBUTTON|MK_RBUTTON))) { m_bDropped = true; return DRAGDROP_S_DROP; } return S_OK; }
Definition at line 58 of file dragdropimpl.h.
Referenced by QueryContinueDrag().
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |