Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.6 KiB

  1. #if !defined(CORE__OldDragDrop_inl__INCLUDED)
  2. #define CORE__OldDragDrop_inl__INCLUDED
  3. #pragma once
  4. /***************************************************************************\
  5. *****************************************************************************
  6. *
  7. * class OldTargetLock
  8. *
  9. *****************************************************************************
  10. \***************************************************************************/
  11. //------------------------------------------------------------------------------
  12. inline
  13. OldTargetLock::OldTargetLock()
  14. {
  15. }
  16. //------------------------------------------------------------------------------
  17. inline
  18. OldTargetLock::~OldTargetLock()
  19. {
  20. if (m_fAddRef) {
  21. m_punk->Release();
  22. }
  23. }
  24. /***************************************************************************\
  25. *****************************************************************************
  26. *
  27. * class OldDropTarget
  28. *
  29. *****************************************************************************
  30. \***************************************************************************/
  31. //------------------------------------------------------------------------------
  32. inline
  33. OldDropTarget::OldDropTarget()
  34. {
  35. }
  36. //------------------------------------------------------------------------------
  37. inline BOOL
  38. OldDropTarget::HasSource() const
  39. {
  40. return m_pdoSrc != NULL;
  41. }
  42. //------------------------------------------------------------------------------
  43. inline BOOL
  44. OldDropTarget::HasTarget() const
  45. {
  46. return m_pdtCur != NULL;
  47. }
  48. #endif // CORE__OldDragDrop_inl__INCLUDED