home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / dpdlg / dpdlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-12  |  3.4 KB  |  179 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 "dpdlg.h"
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. #include "picture.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CDPDlg
  15.  
  16. IMPLEMENT_DYNCREATE(CDPDlg, CWnd)
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CDPDlg properties
  20.  
  21. BOOL CDPDlg::GetBrowseForComputer()
  22. {
  23.     BOOL result;
  24.     GetProperty(0x1, VT_BOOL, (void*)&result);
  25.     return result;
  26. }
  27.  
  28. void CDPDlg::SetBrowseForComputer(BOOL propVal)
  29. {
  30.     SetProperty(0x1, VT_BOOL, propVal);
  31. }
  32.  
  33. BOOL CDPDlg::GetBrowseForPrinter()
  34. {
  35.     BOOL result;
  36.     GetProperty(0x2, VT_BOOL, (void*)&result);
  37.     return result;
  38. }
  39.  
  40. void CDPDlg::SetBrowseForPrinter(BOOL propVal)
  41. {
  42.     SetProperty(0x2, VT_BOOL, propVal);
  43. }
  44.  
  45. BOOL CDPDlg::GetDontGoBelowDomain()
  46. {
  47.     BOOL result;
  48.     GetProperty(0x3, VT_BOOL, (void*)&result);
  49.     return result;
  50. }
  51.  
  52. void CDPDlg::SetDontGoBelowDomain(BOOL propVal)
  53. {
  54.     SetProperty(0x3, VT_BOOL, propVal);
  55. }
  56.  
  57. BOOL CDPDlg::GetReturnFSAncestors()
  58. {
  59.     BOOL result;
  60.     GetProperty(0x4, VT_BOOL, (void*)&result);
  61.     return result;
  62. }
  63.  
  64. void CDPDlg::SetReturnFSAncestors(BOOL propVal)
  65. {
  66.     SetProperty(0x4, VT_BOOL, propVal);
  67. }
  68.  
  69. BOOL CDPDlg::GetReturnOnlyFSDirs()
  70. {
  71.     BOOL result;
  72.     GetProperty(0x5, VT_BOOL, (void*)&result);
  73.     return result;
  74. }
  75.  
  76. void CDPDlg::SetReturnOnlyFSDirs(BOOL propVal)
  77. {
  78.     SetProperty(0x5, VT_BOOL, propVal);
  79. }
  80.  
  81. long CDPDlg::GetRoot()
  82. {
  83.     long result;
  84.     GetProperty(0x6, VT_I4, (void*)&result);
  85.     return result;
  86. }
  87.  
  88. void CDPDlg::SetRoot(long propVal)
  89. {
  90.     SetProperty(0x6, VT_I4, propVal);
  91. }
  92.  
  93. OLE_HANDLE CDPDlg::GetHWnd()
  94. {
  95.     OLE_HANDLE result;
  96.     GetProperty(DISPID_HWND, VT_I4, (void*)&result);
  97.     return result;
  98. }
  99.  
  100. void CDPDlg::SetHWnd(OLE_HANDLE propVal)
  101. {
  102.     SetProperty(DISPID_HWND, VT_I4, propVal);
  103. }
  104.  
  105. CPicture CDPDlg::GetIcon()
  106. {
  107.     LPDISPATCH pDispatch;
  108.     GetProperty(0x7, VT_DISPATCH, (void*)&pDispatch);
  109.     return CPicture(pDispatch);
  110. }
  111.  
  112. void CDPDlg::SetIcon(LPDISPATCH propVal)
  113. {
  114.     SetProperty(0x7, VT_DISPATCH, propVal);
  115. }
  116.  
  117. CString CDPDlg::GetFolder()
  118. {
  119.     CString result;
  120.     GetProperty(0x8, VT_BSTR, (void*)&result);
  121.     return result;
  122. }
  123.  
  124. void CDPDlg::SetFolder(LPCTSTR propVal)
  125. {
  126.     SetProperty(0x8, VT_BSTR, propVal);
  127. }
  128.  
  129. CString CDPDlg::GetPath()
  130. {
  131.     CString result;
  132.     GetProperty(0x9, VT_BSTR, (void*)&result);
  133.     return result;
  134. }
  135.  
  136. void CDPDlg::SetPath(LPCTSTR propVal)
  137. {
  138.     SetProperty(0x9, VT_BSTR, propVal);
  139. }
  140.  
  141. CString CDPDlg::GetCaption()
  142. {
  143.     CString result;
  144.     GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
  145.     return result;
  146. }
  147.  
  148. void CDPDlg::SetCaption(LPCTSTR propVal)
  149. {
  150.     SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
  151. }
  152.  
  153. CString CDPDlg::Get_Caption()
  154. {
  155.     CString result;
  156.     GetProperty(0x0, VT_BSTR, (void*)&result);
  157.     return result;
  158. }
  159.  
  160. void CDPDlg::Set_Caption(LPCTSTR propVal)
  161. {
  162.     SetProperty(0x0, VT_BSTR, propVal);
  163. }
  164.  
  165. /////////////////////////////////////////////////////////////////////////////
  166. // CDPDlg operations
  167.  
  168. BOOL CDPDlg::Show()
  169. {
  170.     BOOL result;
  171.     InvokeHelper(0xa, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  172.     return result;
  173. }
  174.  
  175. void CDPDlg::AboutBox()
  176. {
  177.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  178. }
  179.