home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 5 / MasteringVisualBasic5.iso / protview / demowinx / data.1 / PVNUME~1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  8.7 KB  |  467 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 "pvnumeric.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "font.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CPVNumeric
  15.  
  16. IMPLEMENT_DYNCREATE(CPVNumeric, CWnd)
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CPVNumeric properties
  20.  
  21. OLE_COLOR CPVNumeric::GetBackColor()
  22. {
  23.     OLE_COLOR result;
  24.     GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
  25.     return result;
  26. }
  27.  
  28. void CPVNumeric::SetBackColor(OLE_COLOR propVal)
  29. {
  30.     SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
  31. }
  32.  
  33. OLE_COLOR CPVNumeric::GetForeColor()
  34. {
  35.     OLE_COLOR result;
  36.     GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
  37.     return result;
  38. }
  39.  
  40. void CPVNumeric::SetForeColor(OLE_COLOR propVal)
  41. {
  42.     SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
  43. }
  44.  
  45. short CPVNumeric::GetAppearance()
  46. {
  47.     short result;
  48.     GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
  49.     return result;
  50. }
  51.  
  52. void CPVNumeric::SetAppearance(short propVal)
  53. {
  54.     SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
  55. }
  56.  
  57. short CPVNumeric::GetBorderStyle()
  58. {
  59.     short result;
  60.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  61.     return result;
  62. }
  63.  
  64. void CPVNumeric::SetBorderStyle(short propVal)
  65. {
  66.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  67. }
  68.  
  69. short CPVNumeric::GetAlignment()
  70. {
  71.     short result;
  72.     GetProperty(0x1, VT_I2, (void*)&result);
  73.     return result;
  74. }
  75.  
  76. void CPVNumeric::SetAlignment(short propVal)
  77. {
  78.     SetProperty(0x1, VT_I2, propVal);
  79. }
  80.  
  81. short CPVNumeric::GetDisplayFormat()
  82. {
  83.     short result;
  84.     GetProperty(0x2, VT_I2, (void*)&result);
  85.     return result;
  86. }
  87.  
  88. void CPVNumeric::SetDisplayFormat(short propVal)
  89. {
  90.     SetProperty(0x2, VT_I2, propVal);
  91. }
  92.  
  93. BOOL CPVNumeric::GetEnabled()
  94. {
  95.     BOOL result;
  96.     GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
  97.     return result;
  98. }
  99.  
  100. void CPVNumeric::SetEnabled(BOOL propVal)
  101. {
  102.     SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
  103. }
  104.  
  105. COleFont CPVNumeric::GetFont()
  106. {
  107.     LPDISPATCH pDispatch;
  108.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
  109.     return COleFont(pDispatch);
  110. }
  111.  
  112. void CPVNumeric::SetFont(LPDISPATCH propVal)
  113. {
  114.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  115. }
  116.  
  117. OLE_HANDLE CPVNumeric::GetHWnd()
  118. {
  119.     OLE_HANDLE result;
  120.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  121.     return result;
  122. }
  123.  
  124. void CPVNumeric::SetHWnd(OLE_HANDLE propVal)
  125. {
  126.     SetProperty(DISPID_HWND, VT_I4, propVal);
  127. }
  128.  
  129. CString CPVNumeric::GetText()
  130. {
  131.     CString result;
  132.     GetProperty(DISPID_TEXT, VT_BSTR, (void*)&result);
  133.     return result;
  134. }
  135.  
  136. void CPVNumeric::SetText(LPCTSTR propVal)
  137. {
  138.     SetProperty(DISPID_TEXT, VT_BSTR, propVal);
  139. }
  140.  
  141. BOOL CPVNumeric::GetAutoscroll()
  142. {
  143.     BOOL result;
  144.     GetProperty(0x3, VT_BOOL, (void*)&result);
  145.     return result;
  146. }
  147.  
  148. void CPVNumeric::SetAutoscroll(BOOL propVal)
  149. {
  150.     SetProperty(0x3, VT_BOOL, propVal);
  151. }
  152.  
  153. BOOL CPVNumeric::GetReadOnly()
  154. {
  155.     BOOL result;
  156.     GetProperty(0x4, VT_BOOL, (void*)&result);
  157.     return result;
  158. }
  159.  
  160. void CPVNumeric::SetReadOnly(BOOL propVal)
  161. {
  162.     SetProperty(0x4, VT_BOOL, propVal);
  163. }
  164.  
  165. short CPVNumeric::GetEditMode()
  166. {
  167.     short result;
  168.     GetProperty(0x5, VT_I2, (void*)&result);
  169.     return result;
  170. }
  171.  
  172. void CPVNumeric::SetEditMode(short propVal)
  173. {
  174.     SetProperty(0x5, VT_I2, propVal);
  175. }
  176.  
  177. BOOL CPVNumeric::GetEditModeChange()
  178. {
  179.     BOOL result;
  180.     GetProperty(0x6, VT_BOOL, (void*)&result);
  181.     return result;
  182. }
  183.  
  184. void CPVNumeric::SetEditModeChange(BOOL propVal)
  185. {
  186.     SetProperty(0x6, VT_BOOL, propVal);
  187. }
  188.  
  189. unsigned long CPVNumeric::GetHighlightColor()
  190. {
  191.     unsigned long result;
  192.     GetProperty(0x7, VT_I4, (void*)&result);
  193.     return result;
  194. }
  195.  
  196. void CPVNumeric::SetHighlightColor(unsigned long propVal)
  197. {
  198.     SetProperty(0x7, VT_I4, propVal);
  199. }
  200.  
  201. unsigned long CPVNumeric::GetTextDisabled()
  202. {
  203.     unsigned long result;
  204.     GetProperty(0x8, VT_I4, (void*)&result);
  205.     return result;
  206. }
  207.  
  208. void CPVNumeric::SetTextDisabled(unsigned long propVal)
  209. {
  210.     SetProperty(0x8, VT_I4, propVal);
  211. }
  212.  
  213. CString CPVNumeric::GetDecimalSeparator()
  214. {
  215.     CString result;
  216.     GetProperty(0x9, VT_BSTR, (void*)&result);
  217.     return result;
  218. }
  219.  
  220. void CPVNumeric::SetDecimalSeparator(LPCTSTR propVal)
  221. {
  222.     SetProperty(0x9, VT_BSTR, propVal);
  223. }
  224.  
  225. short CPVNumeric::GetFormat()
  226. {
  227.     short result;
  228.     GetProperty(0xa, VT_I2, (void*)&result);
  229.     return result;
  230. }
  231.  
  232. void CPVNumeric::SetFormat(short propVal)
  233. {
  234.     SetProperty(0xa, VT_I2, propVal);
  235. }
  236.  
  237. double CPVNumeric::GetValueReal()
  238. {
  239.     double result;
  240.     GetProperty(0x17, VT_R8, (void*)&result);
  241.     return result;
  242. }
  243.  
  244. void CPVNumeric::SetValueReal(double propVal)
  245. {
  246.     SetProperty(0x17, VT_R8, propVal);
  247. }
  248.  
  249. long CPVNumeric::GetValueInteger()
  250. {
  251.     long result;
  252.     GetProperty(0x18, VT_I4, (void*)&result);
  253.     return result;
  254. }
  255.  
  256. void CPVNumeric::SetValueInteger(long propVal)
  257. {
  258.     SetProperty(0x18, VT_I4, propVal);
  259. }
  260.  
  261. BOOL CPVNumeric::GetModified()
  262. {
  263.     BOOL result;
  264.     GetProperty(0x19, VT_BOOL, (void*)&result);
  265.     return result;
  266. }
  267.  
  268. void CPVNumeric::SetModified(BOOL propVal)
  269. {
  270.     SetProperty(0x19, VT_BOOL, propVal);
  271. }
  272.  
  273. double CPVNumeric::GetValueMin()
  274. {
  275.     double result;
  276.     GetProperty(0xb, VT_R8, (void*)&result);
  277.     return result;
  278. }
  279.  
  280. void CPVNumeric::SetValueMin(double propVal)
  281. {
  282.     SetProperty(0xb, VT_R8, propVal);
  283. }
  284.  
  285. double CPVNumeric::GetValueMax()
  286. {
  287.     double result;
  288.     GetProperty(0xc, VT_R8, (void*)&result);
  289.     return result;
  290. }
  291.  
  292. void CPVNumeric::SetValueMax(double propVal)
  293. {
  294.     SetProperty(0xc, VT_R8, propVal);
  295. }
  296.  
  297. BOOL CPVNumeric::GetDecimalDefault()
  298. {
  299.     BOOL result;
  300.     GetProperty(0xd, VT_BOOL, (void*)&result);
  301.     return result;
  302. }
  303.  
  304. void CPVNumeric::SetDecimalDefault(BOOL propVal)
  305. {
  306.     SetProperty(0xd, VT_BOOL, propVal);
  307. }
  308.  
  309. CY CPVNumeric::GetValueCurrency()
  310. {
  311.     CY result;
  312.     GetProperty(0x1a, VT_CY, (void*)&result);
  313.     return result;
  314. }
  315.  
  316. void CPVNumeric::SetValueCurrency(const CY& propVal)
  317. {
  318.     SetProperty(0x1a, VT_CY, &propVal);
  319. }
  320.  
  321. short CPVNumeric::GetHighlightInverted()
  322. {
  323.     short result;
  324.     GetProperty(0xe, VT_I2, (void*)&result);
  325.     return result;
  326. }
  327.  
  328. void CPVNumeric::SetHighlightInverted(short propVal)
  329. {
  330.     SetProperty(0xe, VT_I2, propVal);
  331. }
  332.  
  333. double CPVNumeric::GetValueSpinDelta()
  334. {
  335.     double result;
  336.     GetProperty(0xf, VT_R8, (void*)&result);
  337.     return result;
  338. }
  339.  
  340. void CPVNumeric::SetValueSpinDelta(double propVal)
  341. {
  342.     SetProperty(0xf, VT_R8, propVal);
  343. }
  344.  
  345. short CPVNumeric::GetDecimalMin()
  346. {
  347.     short result;
  348.     GetProperty(0x10, VT_I2, (void*)&result);
  349.     return result;
  350. }
  351.  
  352. void CPVNumeric::SetDecimalMin(short propVal)
  353. {
  354.     SetProperty(0x10, VT_I2, propVal);
  355. }
  356.  
  357. short CPVNumeric::GetDecimalMax()
  358. {
  359.     short result;
  360.     GetProperty(0x11, VT_I2, (void*)&result);
  361.     return result;
  362. }
  363.  
  364. void CPVNumeric::SetDecimalMax(short propVal)
  365. {
  366.     SetProperty(0x11, VT_I2, propVal);
  367. }
  368.  
  369. BOOL CPVNumeric::GetCanUndo()
  370. {
  371.     BOOL result;
  372.     GetProperty(0x1b, VT_BOOL, (void*)&result);
  373.     return result;
  374. }
  375.  
  376. void CPVNumeric::SetCanUndo(BOOL propVal)
  377. {
  378.     SetProperty(0x1b, VT_BOOL, propVal);
  379. }
  380.  
  381. short CPVNumeric::GetSelectionPersistance()
  382. {
  383.     short result;
  384.     GetProperty(0x12, VT_I2, (void*)&result);
  385.     return result;
  386. }
  387.  
  388. void CPVNumeric::SetSelectionPersistance(short propVal)
  389. {
  390.     SetProperty(0x12, VT_I2, propVal);
  391. }
  392.  
  393. BOOL CPVNumeric::GetLimitValue()
  394. {
  395.     BOOL result;
  396.     GetProperty(0x13, VT_BOOL, (void*)&result);
  397.     return result;
  398. }
  399.  
  400. void CPVNumeric::SetLimitValue(BOOL propVal)
  401. {
  402.     SetProperty(0x13, VT_BOOL, propVal);
  403. }
  404.  
  405. short CPVNumeric::GetLimitValueByType()
  406. {
  407.     short result;
  408.     GetProperty(0x14, VT_I2, (void*)&result);
  409.     return result;
  410. }
  411.  
  412. void CPVNumeric::SetLimitValueByType(short propVal)
  413. {
  414.     SetProperty(0x14, VT_I2, propVal);
  415. }
  416.  
  417. BOOL CPVNumeric::GetSuppressThousand()
  418. {
  419.     BOOL result;
  420.     GetProperty(0x15, VT_BOOL, (void*)&result);
  421.     return result;
  422. }
  423.  
  424. void CPVNumeric::SetSuppressThousand(BOOL propVal)
  425. {
  426.     SetProperty(0x15, VT_BOOL, propVal);
  427. }
  428.  
  429. short CPVNumeric::GetSpinButtons()
  430. {
  431.     short result;
  432.     GetProperty(0x16, VT_I2, (void*)&result);
  433.     return result;
  434. }
  435.  
  436. void CPVNumeric::SetSpinButtons(short propVal)
  437. {
  438.     SetProperty(0x16, VT_I2, propVal);
  439. }
  440.  
  441. double CPVNumeric::Get_ValueReal()
  442. {
  443.     double result;
  444.     GetProperty(0x0, VT_R8, (void*)&result);
  445.     return result;
  446. }
  447.  
  448. void CPVNumeric::Set_ValueReal(double propVal)
  449. {
  450.     SetProperty(0x0, VT_R8, propVal);
  451. }
  452.  
  453. /////////////////////////////////////////////////////////////////////////////
  454. // CPVNumeric operations
  455.  
  456. BOOL CPVNumeric::Undo()
  457. {
  458.     BOOL result;
  459.     InvokeHelper(0x1c, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  460.     return result;
  461. }
  462.  
  463. void CPVNumeric::AboutBox()
  464. {
  465.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  466. }
  467.