home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / acdual / mfcctrl / autoclik.cpp next >
C/C++ Source or Header  |  1998-04-02  |  3KB  |  118 lines

  1. // Machine generated IDispatch wrapper class(es) created with ClassWizard
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. using namespace ACDual;
  15. #include "autoclik.h"
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CAutoClik properties
  19. #if 0
  20. CString CAutoClik::GetText()
  21. {
  22.     CString result;
  23.     GetProperty(0x1, VT_BSTR, (void*)&result);
  24.     return result;
  25. }
  26.  
  27. void CAutoClik::SetText(LPCTSTR propVal)
  28. {
  29.     SetProperty(0x1, VT_BSTR, propVal);
  30. }
  31.  
  32. short CAutoClik::GetX()
  33. {
  34.     short result;
  35.     GetProperty(0x2, VT_I2, (void*)&result);
  36.     return result;
  37. }
  38.  
  39. void CAutoClik::SetX(short propVal)
  40. {
  41.     SetProperty(0x2, VT_I2, propVal);
  42. }
  43.  
  44. short CAutoClik::GetY()
  45. {
  46.     short result;
  47.     GetProperty(0x3, VT_I2, (void*)&result);
  48.     return result;
  49. }
  50.  
  51. void CAutoClik::SetY(short propVal)
  52. {
  53.     SetProperty(0x3, VT_I2, propVal);
  54. }
  55.  
  56. LPDISPATCH CAutoClik::GetPosition()
  57. {
  58.     LPDISPATCH result;
  59.     GetProperty(0x4, VT_DISPATCH, (void*)&result);
  60.     return result;
  61. }
  62.  
  63. void CAutoClik::SetPosition(LPDISPATCH propVal)
  64. {
  65.     SetProperty(0x4, VT_DISPATCH, propVal);
  66. }
  67.  
  68. /////////////////////////////////////////////////////////////////////////////
  69. // CAutoClik operations
  70.  
  71. void CAutoClik::RefreshWindow()
  72. {
  73.     InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  74. }
  75.  
  76. void CAutoClik::SetAllProps(short x, short y, LPCTSTR text)
  77. {
  78.     static BYTE BASED_CODE parms[] =
  79.         VTS_I2 VTS_I2 VTS_BSTR;
  80.     InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  81.          x, y, text);
  82. }
  83.  
  84. void CAutoClik::ShowWindow()
  85. {
  86.     InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  87. }
  88. /////////////////////////////////////////////////////////////////////////////
  89. // CClikPoint properties
  90.  
  91. short CClikPoint::GetX()
  92. {
  93.     short result;
  94.     GetProperty(0x1, VT_I2, (void*)&result);
  95.     return result;
  96. }
  97.  
  98. void CClikPoint::SetX(short propVal)
  99. {
  100.     SetProperty(0x1, VT_I2, propVal);
  101. }
  102.  
  103. short CClikPoint::GetY()
  104. {
  105.     short result;
  106.     GetProperty(0x2, VT_I2, (void*)&result);
  107.     return result;
  108. }
  109.  
  110. void CClikPoint::SetY(short propVal)
  111. {
  112.     SetProperty(0x2, VT_I2, propVal);
  113. }
  114.  
  115. /////////////////////////////////////////////////////////////////////////////
  116. // CClikPoint operations
  117. #endif
  118.