Source code of Windows XP (NT5)
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
3.0 KiB

  1. //+-------------------------------------------------------------
  2. // File: iclisite.cxx
  3. //
  4. // Contents: CObjClientSite object implementation
  5. //
  6. // Methods: CObjClientSite
  7. // ~CObjClientSite
  8. // Create
  9. // QueryInterface
  10. // AddRef
  11. // Release
  12. // SaveObject (NYI)
  13. // GetMoniker (NYI)
  14. // GetContainer
  15. // ShowObject (NYI)
  16. // OnShowWindow
  17. //
  18. // History: 04-Dec-92 Created DeanE
  19. //---------------------------------------------------------------
  20. #pragma optimize("",off)
  21. #include <windows.h>
  22. #include <ole2.h>
  23. #include <com.hxx>
  24. #include "oleimpl.hxx"
  25. //+-------------------------------------------------------------------
  26. // Method: CBasicBnd::SaveObject
  27. //
  28. // Synopsis: See spec 2.00.09 p107. This object should be saved.
  29. //
  30. // Returns: Should always return S_OK.
  31. //
  32. // History: 04-Dec-92 DeanE Created
  33. //--------------------------------------------------------------------
  34. STDMETHODIMP CBasicBnd::SaveObject(void)
  35. {
  36. // BUGBUG - NYI
  37. // Returning S_OK tells OLE that we actually saved this object
  38. return(S_OK);
  39. }
  40. //+-------------------------------------------------------------------
  41. // Method: CBasicBnd::GetContainer
  42. //
  43. // Synopsis: See spec 2.00.09 p108. Return the container in which
  44. // this object is found.
  45. //
  46. // Returns: Should return S_OK.
  47. //
  48. // History: 04-Dec-92 DeanE Created
  49. //--------------------------------------------------------------------
  50. STDMETHODIMP CBasicBnd::GetContainer(LPOLECONTAINER FAR *ppContainer)
  51. {
  52. return QueryInterface(IID_IOleContainer, (void **) ppContainer);
  53. }
  54. //+-------------------------------------------------------------------
  55. // Method: CBasicBnd::ShowObject
  56. //
  57. // Synopsis: See spec 2.00.09 p109. Server for this object is asking
  58. // us to display it. Caller should not assume we have
  59. // actually worked, but we return S_OK either way. Great!
  60. //
  61. // Returns: S_OK whether we work or not...
  62. //
  63. // History: 04-Dec-92 DeanE Created
  64. //--------------------------------------------------------------------
  65. STDMETHODIMP CBasicBnd::ShowObject(void)
  66. {
  67. return(S_OK);
  68. }
  69. //+-------------------------------------------------------------------
  70. // Method: CBasicBnd::OnShowWindow
  71. //
  72. // Synopsis: ???
  73. //
  74. // Parameters: [fShow] -
  75. //
  76. // Returns: S_OK?
  77. //
  78. // History: 16-Dec-92 DeanE Created
  79. //--------------------------------------------------------------------
  80. STDMETHODIMP CBasicBnd::OnShowWindow(BOOL fShow)
  81. {
  82. return(S_OK);
  83. }
  84. //+-------------------------------------------------------------------
  85. // Method: CBasicBnd::RequestNewObjectLayout
  86. //
  87. // Synopsis: ???
  88. //
  89. // Parameters: [fShow] -
  90. //
  91. // Returns: S_OK?
  92. //
  93. // History: 16-Dec-92 DeanE Created
  94. //--------------------------------------------------------------------
  95. STDMETHODIMP CBasicBnd::RequestNewObjectLayout(void)
  96. {
  97. return(S_OK);
  98. }