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 / daoedit.cpp < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  73 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 "daoedit.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CDaoEdit
  12.  
  13. IMPLEMENT_DYNCREATE(CDaoEdit, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CDaoEdit properties
  17.  
  18. CString CDaoEdit::GetText()
  19. {
  20.     CString result;
  21.     GetProperty(DISPID_TEXT, VT_BSTR, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CDaoEdit::SetText(LPCTSTR propVal)
  26. {
  27.     SetProperty(DISPID_TEXT, VT_BSTR, propVal);
  28. }
  29.  
  30. CString CDaoEdit::Get_Text()
  31. {
  32.     CString result;
  33.     GetProperty(0x0, VT_BSTR, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CDaoEdit::Set_Text(LPCTSTR propVal)
  38. {
  39.     SetProperty(0x0, VT_BSTR, propVal);
  40. }
  41.  
  42. short CDaoEdit::GetBorderStyle()
  43. {
  44.     short result;
  45.     GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CDaoEdit::SetBorderStyle(short propVal)
  50. {
  51.     SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
  52. }
  53.  
  54. CString CDaoEdit::GetFieldName()
  55. {
  56.     CString result;
  57.     GetProperty(0x1, VT_BSTR, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CDaoEdit::SetFieldName(LPCTSTR propVal)
  62. {
  63.     SetProperty(0x1, VT_BSTR, propVal);
  64. }
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67. // CDaoEdit operations
  68.  
  69. void CDaoEdit::AboutBox()
  70. {
  71.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  72. }
  73.