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.

70 lines
1.7 KiB

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