home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.1 / PVBUTTON.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  4.9 KB  |  246 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 "pvbutton.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "Font.h"
  12. #include "Picture.h"
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CPVButton
  16.  
  17. IMPLEMENT_DYNCREATE(CPVButton, CWnd)
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CPVButton properties
  21.  
  22. CString CPVButton::GetCaption()
  23. {
  24.     CString result;
  25.     GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
  26.     return result;
  27. }
  28.  
  29. void CPVButton::SetCaption(LPCTSTR propVal)
  30. {
  31.     SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
  32. }
  33.  
  34. COleFont CPVButton::GetFont()
  35. {
  36.     LPDISPATCH pDispatch;
  37.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  38.     return COleFont(pDispatch);
  39. }
  40.  
  41. void CPVButton::SetFont(LPDISPATCH propVal)
  42. {
  43.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  44. }
  45.  
  46. BOOL CPVButton::GetEnabled()
  47. {
  48.     BOOL result;
  49.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  50.     return result;
  51. }
  52.  
  53. void CPVButton::SetEnabled(BOOL propVal)
  54. {
  55.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  56. }
  57.  
  58. OLE_HANDLE CPVButton::GetHWnd()
  59. {
  60.     OLE_HANDLE result;
  61.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  62.     return result;
  63. }
  64.  
  65. void CPVButton::SetHWnd(OLE_HANDLE propVal)
  66. {
  67.     SetProperty(DISPID_HWND, VT_I4, propVal);
  68. }
  69.  
  70. short CPVButton::GetPicture()
  71. {
  72.     short result;
  73.     GetProperty(0x1, VT_I2, (void*)&result);
  74.     return result;
  75. }
  76.  
  77. void CPVButton::SetPicture(short propVal)
  78. {
  79.     SetProperty(0x1, VT_I2, propVal);
  80. }
  81.  
  82. CString CPVButton::Get_Caption()
  83. {
  84.     CString result;
  85.     GetProperty(0x0, VT_BSTR, (void*)&result);
  86.     return result;
  87. }
  88.  
  89. void CPVButton::Set_Caption(LPCTSTR propVal)
  90. {
  91.     SetProperty(0x0, VT_BSTR, propVal);
  92. }
  93.  
  94. short CPVButton::GetSpecialEffect()
  95. {
  96.     short result;
  97.     GetProperty(0x2, VT_I2, (void*)&result);
  98.     return result;
  99. }
  100.  
  101. void CPVButton::SetSpecialEffect(short propVal)
  102. {
  103.     SetProperty(0x2, VT_I2, propVal);
  104. }
  105.  
  106. BOOL CPVButton::GetDefaultButton()
  107. {
  108.     BOOL result;
  109.     GetProperty(0x3, VT_BOOL, (void*)&result);
  110.     return result;
  111. }
  112.  
  113. void CPVButton::SetDefaultButton(BOOL propVal)
  114. {
  115.     SetProperty(0x3, VT_BOOL, propVal);
  116. }
  117.  
  118. BOOL CPVButton::GetRepeatButton()
  119. {
  120.     BOOL result;
  121.     GetProperty(0x4, VT_BOOL, (void*)&result);
  122.     return result;
  123. }
  124.  
  125. void CPVButton::SetRepeatButton(BOOL propVal)
  126. {
  127.     SetProperty(0x4, VT_BOOL, propVal);
  128. }
  129.  
  130. unsigned long CPVButton::GetColorCodeColor()
  131. {
  132.     unsigned long result;
  133.     GetProperty(0x5, VT_I4, (void*)&result);
  134.     return result;
  135. }
  136.  
  137. void CPVButton::SetColorCodeColor(unsigned long propVal)
  138. {
  139.     SetProperty(0x5, VT_I4, propVal);
  140. }
  141.  
  142. CPicture CPVButton::GetCustomPicture()
  143. {
  144.     LPDISPATCH pDispatch;
  145.     GetProperty(0xa, VT_DISPATCH, (void*)&pDispatch);
  146.     return CPicture(pDispatch);
  147. }
  148.  
  149. void CPVButton::SetCustomPicture(LPDISPATCH propVal)
  150. {
  151.     SetProperty(0xa, VT_DISPATCH, propVal);
  152. }
  153.  
  154. OLE_COLOR CPVButton::GetBackColor()
  155. {
  156.     OLE_COLOR result;
  157.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  158.     return result;
  159. }
  160.  
  161. void CPVButton::SetBackColor(OLE_COLOR propVal)
  162. {
  163.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  164. }
  165.  
  166. OLE_COLOR CPVButton::GetForeColor()
  167. {
  168.     OLE_COLOR result;
  169.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  170.     return result;
  171. }
  172.  
  173. void CPVButton::SetForeColor(OLE_COLOR propVal)
  174. {
  175.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  176. }
  177.  
  178. unsigned long CPVButton::GetLightShadow()
  179. {
  180.     unsigned long result;
  181.     GetProperty(0x6, VT_I4, (void*)&result);
  182.     return result;
  183. }
  184.  
  185. void CPVButton::SetLightShadow(unsigned long propVal)
  186. {
  187.     SetProperty(0x6, VT_I4, propVal);
  188. }
  189.  
  190. unsigned long CPVButton::GetDarkShadow()
  191. {
  192.     unsigned long result;
  193.     GetProperty(0x7, VT_I4, (void*)&result);
  194.     return result;
  195. }
  196.  
  197. void CPVButton::SetDarkShadow(unsigned long propVal)
  198. {
  199.     SetProperty(0x7, VT_I4, propVal);
  200. }
  201.  
  202. unsigned long CPVButton::GetLightHighlight()
  203. {
  204.     unsigned long result;
  205.     GetProperty(0x8, VT_I4, (void*)&result);
  206.     return result;
  207. }
  208.  
  209. void CPVButton::SetLightHighlight(unsigned long propVal)
  210. {
  211.     SetProperty(0x8, VT_I4, propVal);
  212. }
  213.  
  214. unsigned long CPVButton::GetDarkHighlight()
  215. {
  216.     unsigned long result;
  217.     GetProperty(0x9, VT_I4, (void*)&result);
  218.     return result;
  219. }
  220.  
  221. void CPVButton::SetDarkHighlight(unsigned long propVal)
  222. {
  223.     SetProperty(0x9, VT_I4, propVal);
  224. }
  225.  
  226. /////////////////////////////////////////////////////////////////////////////
  227. // CPVButton operations
  228.  
  229. void CPVButton::ResetColorScheme()
  230. {
  231.     InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  232. }
  233.  
  234. void CPVButton::SetRedraw(BOOL bRedraw)
  235. {
  236.     static BYTE parms[] =
  237.         VTS_BOOL;
  238.     InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  239.          bRedraw);
  240. }
  241.  
  242. void CPVButton::AboutBox()
  243. {
  244.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  245. }
  246.