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.

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