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.

353 lines
6.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 "msacal70.h"
  6. // Dispatch interfaces referenced by this interface
  7. #include "font.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CMsacal70
  10. IMPLEMENT_DYNCREATE(CMsacal70, CWnd)
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMsacal70 properties
  13. OLE_COLOR CMsacal70::GetBackColor()
  14. {
  15. OLE_COLOR result;
  16. GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  17. return result;
  18. }
  19. void CMsacal70::SetBackColor(OLE_COLOR propVal)
  20. {
  21. SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  22. }
  23. short CMsacal70::GetDay()
  24. {
  25. short result;
  26. GetProperty(0x11, VT_I2, (void*)&result);
  27. return result;
  28. }
  29. void CMsacal70::SetDay(short propVal)
  30. {
  31. SetProperty(0x11, VT_I2, propVal);
  32. }
  33. COleFont CMsacal70::GetDayFont()
  34. {
  35. LPDISPATCH pDispatch;
  36. GetProperty(0x1, VT_DISPATCH, (void*)&pDispatch);
  37. return COleFont(pDispatch);
  38. }
  39. void CMsacal70::SetDayFont(LPDISPATCH propVal)
  40. {
  41. SetProperty(0x1, VT_DISPATCH, propVal);
  42. }
  43. unsigned long CMsacal70::GetDayFontColor()
  44. {
  45. unsigned long result;
  46. GetProperty(0x2, VT_I4, (void*)&result);
  47. return result;
  48. }
  49. void CMsacal70::SetDayFontColor(unsigned long propVal)
  50. {
  51. SetProperty(0x2, VT_I4, propVal);
  52. }
  53. short CMsacal70::GetDayLength()
  54. {
  55. short result;
  56. GetProperty(0x12, VT_I2, (void*)&result);
  57. return result;
  58. }
  59. void CMsacal70::SetDayLength(short propVal)
  60. {
  61. SetProperty(0x12, VT_I2, propVal);
  62. }
  63. short CMsacal70::GetFirstDay()
  64. {
  65. short result;
  66. GetProperty(0x13, VT_I2, (void*)&result);
  67. return result;
  68. }
  69. void CMsacal70::SetFirstDay(short propVal)
  70. {
  71. SetProperty(0x13, VT_I2, propVal);
  72. }
  73. long CMsacal70::GetGridCellEffect()
  74. {
  75. long result;
  76. GetProperty(0x14, VT_I4, (void*)&result);
  77. return result;
  78. }
  79. void CMsacal70::SetGridCellEffect(long propVal)
  80. {
  81. SetProperty(0x14, VT_I4, propVal);
  82. }
  83. COleFont CMsacal70::GetGridFont()
  84. {
  85. LPDISPATCH pDispatch;
  86. GetProperty(0x3, VT_DISPATCH, (void*)&pDispatch);
  87. return COleFont(pDispatch);
  88. }
  89. void CMsacal70::SetGridFont(LPDISPATCH propVal)
  90. {
  91. SetProperty(0x3, VT_DISPATCH, propVal);
  92. }
  93. unsigned long CMsacal70::GetGridFontColor()
  94. {
  95. unsigned long result;
  96. GetProperty(0x4, VT_I4, (void*)&result);
  97. return result;
  98. }
  99. void CMsacal70::SetGridFontColor(unsigned long propVal)
  100. {
  101. SetProperty(0x4, VT_I4, propVal);
  102. }
  103. unsigned long CMsacal70::GetGridLinesColor()
  104. {
  105. unsigned long result;
  106. GetProperty(0xd, VT_I4, (void*)&result);
  107. return result;
  108. }
  109. void CMsacal70::SetGridLinesColor(unsigned long propVal)
  110. {
  111. SetProperty(0xd, VT_I4, propVal);
  112. }
  113. short CMsacal70::GetMonth()
  114. {
  115. short result;
  116. GetProperty(0x10, VT_I2, (void*)&result);
  117. return result;
  118. }
  119. void CMsacal70::SetMonth(short propVal)
  120. {
  121. SetProperty(0x10, VT_I2, propVal);
  122. }
  123. short CMsacal70::GetMonthLength()
  124. {
  125. short result;
  126. GetProperty(0x15, VT_I2, (void*)&result);
  127. return result;
  128. }
  129. void CMsacal70::SetMonthLength(short propVal)
  130. {
  131. SetProperty(0x15, VT_I2, propVal);
  132. }
  133. BOOL CMsacal70::GetShowDateSelectors()
  134. {
  135. BOOL result;
  136. GetProperty(0x5, VT_BOOL, (void*)&result);
  137. return result;
  138. }
  139. void CMsacal70::SetShowDateSelectors(BOOL propVal)
  140. {
  141. SetProperty(0x5, VT_BOOL, propVal);
  142. }
  143. BOOL CMsacal70::GetShowDays()
  144. {
  145. BOOL result;
  146. GetProperty(0x6, VT_BOOL, (void*)&result);
  147. return result;
  148. }
  149. void CMsacal70::SetShowDays(BOOL propVal)
  150. {
  151. SetProperty(0x6, VT_BOOL, propVal);
  152. }
  153. BOOL CMsacal70::GetShowHorizontalGrid()
  154. {
  155. BOOL result;
  156. GetProperty(0x7, VT_BOOL, (void*)&result);
  157. return result;
  158. }
  159. void CMsacal70::SetShowHorizontalGrid(BOOL propVal)
  160. {
  161. SetProperty(0x7, VT_BOOL, propVal);
  162. }
  163. BOOL CMsacal70::GetShowTitle()
  164. {
  165. BOOL result;
  166. GetProperty(0x8, VT_BOOL, (void*)&result);
  167. return result;
  168. }
  169. void CMsacal70::SetShowTitle(BOOL propVal)
  170. {
  171. SetProperty(0x8, VT_BOOL, propVal);
  172. }
  173. BOOL CMsacal70::GetShowVerticalGrid()
  174. {
  175. BOOL result;
  176. GetProperty(0x9, VT_BOOL, (void*)&result);
  177. return result;
  178. }
  179. void CMsacal70::SetShowVerticalGrid(BOOL propVal)
  180. {
  181. SetProperty(0x9, VT_BOOL, propVal);
  182. }
  183. COleFont CMsacal70::GetTitleFont()
  184. {
  185. LPDISPATCH pDispatch;
  186. GetProperty(0xa, VT_DISPATCH, (void*)&pDispatch);
  187. return COleFont(pDispatch);
  188. }
  189. void CMsacal70::SetTitleFont(LPDISPATCH propVal)
  190. {
  191. SetProperty(0xa, VT_DISPATCH, propVal);
  192. }
  193. unsigned long CMsacal70::GetTitleFontColor()
  194. {
  195. unsigned long result;
  196. GetProperty(0xb, VT_I4, (void*)&result);
  197. return result;
  198. }
  199. void CMsacal70::SetTitleFontColor(unsigned long propVal)
  200. {
  201. SetProperty(0xb, VT_I4, propVal);
  202. }
  203. VARIANT CMsacal70::GetValue()
  204. {
  205. VARIANT result;
  206. GetProperty(0xc, VT_VARIANT, (void*)&result);
  207. return result;
  208. }
  209. void CMsacal70::SetValue(const VARIANT& propVal)
  210. {
  211. SetProperty(0xc, VT_VARIANT, &propVal);
  212. }
  213. VARIANT CMsacal70::Get_Value()
  214. {
  215. VARIANT result;
  216. GetProperty(0x0, VT_VARIANT, (void*)&result);
  217. return result;
  218. }
  219. void CMsacal70::Set_Value(const VARIANT& propVal)
  220. {
  221. SetProperty(0x0, VT_VARIANT, &propVal);
  222. }
  223. BOOL CMsacal70::GetValueIsNull()
  224. {
  225. BOOL result;
  226. GetProperty(0xe, VT_BOOL, (void*)&result);
  227. return result;
  228. }
  229. void CMsacal70::SetValueIsNull(BOOL propVal)
  230. {
  231. SetProperty(0xe, VT_BOOL, propVal);
  232. }
  233. short CMsacal70::GetYear()
  234. {
  235. short result;
  236. GetProperty(0xf, VT_I2, (void*)&result);
  237. return result;
  238. }
  239. void CMsacal70::SetYear(short propVal)
  240. {
  241. SetProperty(0xf, VT_I2, propVal);
  242. }
  243. /////////////////////////////////////////////////////////////////////////////
  244. // CMsacal70 operations
  245. void CMsacal70::NextDay()
  246. {
  247. InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  248. }
  249. void CMsacal70::NextMonth()
  250. {
  251. InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  252. }
  253. void CMsacal70::NextWeek()
  254. {
  255. InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  256. }
  257. void CMsacal70::NextYear()
  258. {
  259. InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  260. }
  261. void CMsacal70::PreviousDay()
  262. {
  263. InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  264. }
  265. void CMsacal70::PreviousMonth()
  266. {
  267. InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  268. }
  269. void CMsacal70::PreviousWeek()
  270. {
  271. InvokeHelper(0x1c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  272. }
  273. void CMsacal70::PreviousYear()
  274. {
  275. InvokeHelper(0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  276. }
  277. void CMsacal70::Refresh()
  278. {
  279. InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  280. }
  281. void CMsacal70::Today()
  282. {
  283. InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  284. }
  285. void CMsacal70::AboutBox()
  286. {
  287. InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  288. }