home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.1 / PVCALE~1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  4.8 KB  |  244 lines

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "pvcalendar.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "font.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CPVCalendar
  15.  
  16. IMPLEMENT_DYNCREATE(CPVCalendar, CWnd)
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPVCalendar properties
  20.  
  21. short CPVCalendar::GetAppearance()
  22. {
  23.     short result;
  24.     GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
  25.     return result;
  26. }
  27.  
  28. void CPVCalendar::SetAppearance(short propVal)
  29. {
  30.     SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
  31. }
  32.  
  33. short CPVCalendar::GetBorderStyle()
  34. {
  35.     short result;
  36.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  37.     return result;
  38. }
  39.  
  40. void CPVCalendar::SetBorderStyle(short propVal)
  41. {
  42.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  43. }
  44.  
  45. BOOL CPVCalendar::GetEnabled()
  46. {
  47.     BOOL result;
  48.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  49.     return result;
  50. }
  51.  
  52. void CPVCalendar::SetEnabled(BOOL propVal)
  53. {
  54.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  55. }
  56.  
  57. COleFont CPVCalendar::GetFont()
  58. {
  59.     LPDISPATCH pDispatch;
  60.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  61.     return COleFont(pDispatch);
  62. }
  63.  
  64. void CPVCalendar::SetFont(LPDISPATCH propVal)
  65. {
  66.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  67. }
  68.  
  69. OLE_HANDLE CPVCalendar::GetHWnd()
  70. {
  71.     OLE_HANDLE result;
  72.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  73.     return result;
  74. }
  75.  
  76. void CPVCalendar::SetHWnd(OLE_HANDLE propVal)
  77. {
  78.     SetProperty(DISPID_HWND, VT_I4, propVal);
  79. }
  80.  
  81. BOOL CPVCalendar::GetEnableYearEdit()
  82. {
  83.     BOOL result;
  84.     GetProperty(0x1, VT_BOOL, (void*)&result);
  85.     return result;
  86. }
  87.  
  88. void CPVCalendar::SetEnableYearEdit(BOOL propVal)
  89. {
  90.     SetProperty(0x1, VT_BOOL, propVal);
  91. }
  92.  
  93. BOOL CPVCalendar::GetEnablePeriodEdit()
  94. {
  95.     BOOL result;
  96.     GetProperty(0x2, VT_BOOL, (void*)&result);
  97.     return result;
  98. }
  99.  
  100. void CPVCalendar::SetEnablePeriodEdit(BOOL propVal)
  101. {
  102.     SetProperty(0x2, VT_BOOL, propVal);
  103. }
  104.  
  105. BOOL CPVCalendar::GetAutoSizeFont()
  106. {
  107.     BOOL result;
  108.     GetProperty(0x3, VT_BOOL, (void*)&result);
  109.     return result;
  110. }
  111.  
  112. void CPVCalendar::SetAutoSizeFont(BOOL propVal)
  113. {
  114.     SetProperty(0x3, VT_BOOL, propVal);
  115. }
  116.  
  117. short CPVCalendar::GetFormat()
  118. {
  119.     short result;
  120.     GetProperty(0x4, VT_I2, (void*)&result);
  121.     return result;
  122. }
  123.  
  124. void CPVCalendar::SetFormat(short propVal)
  125. {
  126.     SetProperty(0x4, VT_I2, propVal);
  127. }
  128.  
  129. unsigned long CPVCalendar::GetSundayColor()
  130. {
  131.     unsigned long result;
  132.     GetProperty(0x5, VT_I4, (void*)&result);
  133.     return result;
  134. }
  135.  
  136. void CPVCalendar::SetSundayColor(unsigned long propVal)
  137. {
  138.     SetProperty(0x5, VT_I4, propVal);
  139. }
  140.  
  141. unsigned long CPVCalendar::GetSundayBkColor()
  142. {
  143.     unsigned long result;
  144.     GetProperty(0x6, VT_I4, (void*)&result);
  145.     return result;
  146. }
  147.  
  148. void CPVCalendar::SetSundayBkColor(unsigned long propVal)
  149. {
  150.     SetProperty(0x6, VT_I4, propVal);
  151. }
  152.  
  153. DATE CPVCalendar::GetValue()
  154. {
  155.     DATE result;
  156.     GetProperty(0x7, VT_DATE, (void*)&result);
  157.     return result;
  158. }
  159.  
  160. void CPVCalendar::SetValue(DATE propVal)
  161. {
  162.     SetProperty(0x7, VT_DATE, propVal);
  163. }
  164.  
  165. DATE CPVCalendar::Get_Value()
  166. {
  167.     DATE result;
  168.     GetProperty(0x0, VT_DATE, (void*)&result);
  169.     return result;
  170. }
  171.  
  172. void CPVCalendar::Set_Value(DATE propVal)
  173. {
  174.     SetProperty(0x0, VT_DATE, propVal);
  175. }
  176.  
  177. BOOL CPVCalendar::GetReadOnly()
  178. {
  179.     BOOL result;
  180.     GetProperty(0x8, VT_BOOL, (void*)&result);
  181.     return result;
  182. }
  183.  
  184. void CPVCalendar::SetReadOnly(BOOL propVal)
  185. {
  186.     SetProperty(0x8, VT_BOOL, propVal);
  187. }
  188.  
  189. unsigned long CPVCalendar::GetBkDayColor()
  190. {
  191.     unsigned long result;
  192.     GetProperty(0x9, VT_I4, (void*)&result);
  193.     return result;
  194. }
  195.  
  196. void CPVCalendar::SetBkDayColor(unsigned long propVal)
  197. {
  198.     SetProperty(0x9, VT_I4, propVal);
  199. }
  200.  
  201. unsigned long CPVCalendar::GetDayColor()
  202. {
  203.     unsigned long result;
  204.     GetProperty(0xa, VT_I4, (void*)&result);
  205.     return result;
  206. }
  207.  
  208. void CPVCalendar::SetDayColor(unsigned long propVal)
  209. {
  210.     SetProperty(0xa, VT_I4, propVal);
  211. }
  212.  
  213. unsigned long CPVCalendar::GetHighlightColor()
  214. {
  215.     unsigned long result;
  216.     GetProperty(0xb, VT_I4, (void*)&result);
  217.     return result;
  218. }
  219.  
  220. void CPVCalendar::SetHighlightColor(unsigned long propVal)
  221. {
  222.     SetProperty(0xb, VT_I4, propVal);
  223. }
  224.  
  225. unsigned long CPVCalendar::GetBkHighlightColor()
  226. {
  227.     unsigned long result;
  228.     GetProperty(0xc, VT_I4, (void*)&result);
  229.     return result;
  230. }
  231.  
  232. void CPVCalendar::SetBkHighlightColor(unsigned long propVal)
  233. {
  234.     SetProperty(0xc, VT_I4, propVal);
  235. }
  236.  
  237. /////////////////////////////////////////////////////////////////////////////
  238. // CPVCalendar operations
  239.  
  240. void CPVCalendar::AboutBox()
  241. {
  242.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  243. }
  244.