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.

108 lines
2.2 KiB

  1. /*
  2. * IDOCHOSTSHOWUI.CPP
  3. * IDocHostShowUI for Document Objects CSite class
  4. *
  5. * Copyright (c)1997-1999 Microsoft Corporation, All Rights Reserved
  6. */
  7. #include "stdafx.h"
  8. #include <docobj.h>
  9. #include "site.h"
  10. /**
  11. Note: the m_cRef count is provided for debugging purposes only.
  12. CSite controls the destruction of the object through delete,
  13. not reference counting
  14. */
  15. /*
  16. * CImpIDocHostShowUI::CImpIDocHostShowUI
  17. * CImpIDocHostShowUI::~CImpIDocHostShowUI
  18. *
  19. * Parameters (Constructor):
  20. * pSite PCSite of the site we're in.
  21. * pUnkOuter LPUNKNOWN to which we delegate.
  22. */
  23. CImpIDocHostShowUI::CImpIDocHostShowUI( PCSite pSite, LPUNKNOWN pUnkOuter)
  24. {
  25. m_cRef = 0;
  26. m_pSite = pSite;
  27. m_pUnkOuter = pUnkOuter;
  28. }
  29. CImpIDocHostShowUI::~CImpIDocHostShowUI( void )
  30. {
  31. }
  32. /*
  33. * CImpIDocHostShowUI::QueryInterface
  34. * CImpIDocHostShowUI::AddRef
  35. * CImpIDocHostShowUI::Release
  36. *
  37. * Purpose:
  38. * IUnknown members for CImpIDocHostShowUI object.
  39. */
  40. STDMETHODIMP CImpIDocHostShowUI::QueryInterface( REFIID riid, void **ppv )
  41. {
  42. return m_pUnkOuter->QueryInterface( riid, ppv );
  43. }
  44. STDMETHODIMP_(ULONG) CImpIDocHostShowUI::AddRef( void )
  45. {
  46. ++m_cRef;
  47. return m_pUnkOuter->AddRef();
  48. }
  49. STDMETHODIMP_(ULONG) CImpIDocHostShowUI::Release( void )
  50. {
  51. --m_cRef;
  52. return m_pUnkOuter->Release();
  53. }
  54. /*
  55. * CImpIDocHostShowUI::ShowMessage
  56. *
  57. * Purpose:
  58. *
  59. * Parameters:
  60. *
  61. * Return Value:
  62. */
  63. STDMETHODIMP CImpIDocHostShowUI::ShowMessage(
  64. HWND /*hwnd*/,
  65. LPOLESTR /*lpstrText*/,
  66. LPOLESTR /*lpstrCaption*/,
  67. DWORD /*dwType*/,
  68. LPOLESTR /*lpstrHelpFile*/,
  69. DWORD /*dwHelpContext*/,
  70. LRESULT* /*plResult*/)
  71. {
  72. return S_FALSE;
  73. }
  74. /*
  75. * CImpIDocHostShowUI::ShowHelp
  76. *
  77. * Purpose:
  78. *
  79. * Parameters:
  80. *
  81. * Return Value:
  82. */
  83. STDMETHODIMP CImpIDocHostShowUI::ShowHelp(
  84. HWND /*hwnd*/,
  85. LPOLESTR /*pszHelpFile*/,
  86. UINT /*uCommand*/,
  87. DWORD /*dwData*/,
  88. POINT /*ptMouse*/,
  89. IDispatch* /*pDispatchObjectHit*/)
  90. {
  91. return S_FALSE;
  92. }