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.

202 lines
4.7 KiB

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "webbrows.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CWebBrowser
  8. IMPLEMENT_DYNCREATE(CWebBrowser, CWnd)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CWebBrowser properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CWebBrowser operations
  13. unsigned long CWebBrowser::AddRef()
  14. {
  15. unsigned long result;
  16. InvokeHelper(0x60000001, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  17. return result;
  18. }
  19. unsigned long CWebBrowser::Release()
  20. {
  21. unsigned long result;
  22. InvokeHelper(0x60000002, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
  23. return result;
  24. }
  25. void CWebBrowser::GoBack()
  26. {
  27. InvokeHelper(0x64, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  28. }
  29. void CWebBrowser::GoForward()
  30. {
  31. InvokeHelper(0x65, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  32. }
  33. void CWebBrowser::GoHome()
  34. {
  35. InvokeHelper(0x66, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  36. }
  37. void CWebBrowser::GoSearch()
  38. {
  39. InvokeHelper(0x67, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  40. }
  41. void CWebBrowser::Navigate(LPCTSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers)
  42. {
  43. static BYTE parms[] =
  44. VTS_BSTR VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT VTS_PVARIANT;
  45. InvokeHelper(0x68, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  46. URL, Flags, TargetFrameName, PostData, Headers);
  47. }
  48. void CWebBrowser::Refresh()
  49. {
  50. InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  51. }
  52. void CWebBrowser::Refresh2(VARIANT* Level)
  53. {
  54. static BYTE parms[] =
  55. VTS_PVARIANT;
  56. InvokeHelper(0x69, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  57. Level);
  58. }
  59. void CWebBrowser::Stop()
  60. {
  61. InvokeHelper(0x6a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  62. }
  63. LPDISPATCH CWebBrowser::GetApplication()
  64. {
  65. LPDISPATCH result;
  66. InvokeHelper(0xc8, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  67. return result;
  68. }
  69. LPDISPATCH CWebBrowser::GetParent()
  70. {
  71. LPDISPATCH result;
  72. InvokeHelper(0xc9, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  73. return result;
  74. }
  75. LPDISPATCH CWebBrowser::GetContainer()
  76. {
  77. LPDISPATCH result;
  78. InvokeHelper(0xca, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  79. return result;
  80. }
  81. LPDISPATCH CWebBrowser::GetDocument()
  82. {
  83. LPDISPATCH result;
  84. InvokeHelper(0xcb, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  85. return result;
  86. }
  87. BOOL CWebBrowser::GetTopLevelContainer()
  88. {
  89. BOOL result;
  90. InvokeHelper(0xcc, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  91. return result;
  92. }
  93. CString CWebBrowser::GetType()
  94. {
  95. CString result;
  96. InvokeHelper(0xcd, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  97. return result;
  98. }
  99. long CWebBrowser::GetLeft()
  100. {
  101. long result;
  102. InvokeHelper(0xce, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  103. return result;
  104. }
  105. void CWebBrowser::SetLeft(long nNewValue)
  106. {
  107. static BYTE parms[] =
  108. VTS_I4;
  109. InvokeHelper(0xce, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  110. nNewValue);
  111. }
  112. long CWebBrowser::GetTop()
  113. {
  114. long result;
  115. InvokeHelper(0xcf, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  116. return result;
  117. }
  118. void CWebBrowser::SetTop(long nNewValue)
  119. {
  120. static BYTE parms[] =
  121. VTS_I4;
  122. InvokeHelper(0xcf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  123. nNewValue);
  124. }
  125. long CWebBrowser::GetWidth()
  126. {
  127. long result;
  128. InvokeHelper(0xd0, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  129. return result;
  130. }
  131. void CWebBrowser::SetWidth(long nNewValue)
  132. {
  133. static BYTE parms[] =
  134. VTS_I4;
  135. InvokeHelper(0xd0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  136. nNewValue);
  137. }
  138. long CWebBrowser::GetHeight()
  139. {
  140. long result;
  141. InvokeHelper(0xd1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  142. return result;
  143. }
  144. void CWebBrowser::SetHeight(long nNewValue)
  145. {
  146. static BYTE parms[] =
  147. VTS_I4;
  148. InvokeHelper(0xd1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  149. nNewValue);
  150. }
  151. CString CWebBrowser::GetLocationName()
  152. {
  153. CString result;
  154. InvokeHelper(0xd2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  155. return result;
  156. }
  157. CString CWebBrowser::GetLocationURL()
  158. {
  159. CString result;
  160. InvokeHelper(0xd3, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  161. return result;
  162. }
  163. BOOL CWebBrowser::GetBusy()
  164. {
  165. BOOL result;
  166. InvokeHelper(0xd4, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  167. return result;
  168. }