home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / daoctl / accpict.cpp next >
C/C++ Source or Header  |  1998-03-26  |  3KB  |  119 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 "accpict.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CAccessPict
  12.  
  13. IMPLEMENT_DYNCREATE(CAccessPict, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CAccessPict properties
  17.  
  18. BOOL CAccessPict::GetIsAccessObject()
  19. {
  20.     BOOL result;
  21.     GetProperty(0x3, VT_BOOL, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CAccessPict::SetIsAccessObject(BOOL propVal)
  26. {
  27.     SetProperty(0x3, VT_BOOL, propVal);
  28. }
  29.  
  30. BOOL CAccessPict::GetStretchToFit()
  31. {
  32.     BOOL result;
  33.     GetProperty(0x1, VT_BOOL, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CAccessPict::SetStretchToFit(BOOL propVal)
  38. {
  39.     SetProperty(0x1, VT_BOOL, propVal);
  40. }
  41.  
  42. BOOL CAccessPict::GetPreserveRatio()
  43. {
  44.     BOOL result;
  45.     GetProperty(0x2, VT_BOOL, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CAccessPict::SetPreserveRatio(BOOL propVal)
  50. {
  51.     SetProperty(0x2, VT_BOOL, propVal);
  52. }
  53.  
  54. LPDISPATCH CAccessPict::GetPicture()
  55. {
  56.     LPDISPATCH result;
  57.     GetProperty(0x4, VT_DISPATCH, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CAccessPict::SetPicture(LPDISPATCH propVal)
  62. {
  63.     SetProperty(0x4, VT_DISPATCH, propVal);
  64. }
  65.  
  66. short CAccessPict::GetBorderStyle()
  67. {
  68.     short result;
  69.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CAccessPict::SetBorderStyle(short propVal)
  74. {
  75.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  76. }
  77.  
  78. CString CAccessPict::GetCaption()
  79. {
  80.     CString result;
  81.     GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CAccessPict::SetCaption(LPCTSTR propVal)
  86. {
  87.     SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
  88. }
  89.  
  90. LPFONTDISP CAccessPict::GetFont()
  91. {
  92.     LPFONTDISP result;
  93.     GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CAccessPict::SetFont(LPFONTDISP propVal)
  98. {
  99.     SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
  100. }
  101.  
  102. /////////////////////////////////////////////////////////////////////////////
  103. // CAccessPict operations
  104.  
  105. BOOL CAccessPict::SetData(VARIANT* pvarData)
  106. {
  107.     BOOL result;
  108.     static BYTE parms[] =
  109.         VTS_PVARIANT;
  110.     InvokeHelper(0x5, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  111.         pvarData);
  112.     return result;
  113. }
  114.  
  115. void CAccessPict::AboutBox()
  116. {
  117.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  118. }
  119.