Public Member Functions | Public Attributes

IDropSourceImpl Class Reference

implementation of IDropSource interface More...

#include <dragdropimpl.h>

Inheritance diagram for IDropSourceImpl:
Inheritance graph
[legend]
Collaboration diagram for IDropSourceImpl:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

implementation of IDropSource interface

Definition at line 50 of file dragdropimpl.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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;

}

Member Data Documentation

Definition at line 58 of file dragdropimpl.h.

Referenced by QueryContinueDrag().


The documentation for this class was generated from the following files:

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage