msdgridctrl2.h
上传用户:sztwq510
上传日期:2013-06-26
资源大小:4045k
文件大小:5k
源码类别:

酒店行业

开发平台:

Java

  1. #if !defined(AFX_MSDGRIDCTRL2_H__13FFC19A_1B6C_4A04_960C_BE2CD3B87B1F__INCLUDED_)
  2. #define AFX_MSDGRIDCTRL2_H__13FFC19A_1B6C_4A04_960C_BE2CD3B87B1F__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  7. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  8. //  Microsoft Visual C++, your modifications will be overwritten.
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CMsDgridCtrl wrapper class
  11. class CMsDgridCtrl : public CWnd
  12. {
  13. protected:
  14. DECLARE_DYNCREATE(CMsDgridCtrl)
  15. public:
  16. CLSID const& GetClsid()
  17. {
  18. static CLSID const clsid
  19. = { 0x28c00, 0x0, 0x0, { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x46 } };
  20. return clsid;
  21. }
  22. virtual BOOL Create(LPCTSTR lpszClassName,
  23. LPCTSTR lpszWindowName, DWORD dwStyle,
  24. const RECT& rect,
  25. CWnd* pParentWnd, UINT nID,
  26. CCreateContext* pContext = NULL)
  27. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  28.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  29. const RECT& rect, CWnd* pParentWnd, UINT nID,
  30. CFile* pPersist = NULL, BOOL bStorage = FALSE,
  31. BSTR bstrLicKey = NULL)
  32. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  33. pPersist, bStorage, bstrLicKey); }
  34. // Attributes
  35. public:
  36. BOOL GetAllowDelete();
  37. void SetAllowDelete(BOOL);
  38. BOOL GetAllowAddNew();
  39. void SetAllowAddNew(BOOL);
  40. BOOL GetAllowRowSizing();
  41. void SetAllowRowSizing(BOOL);
  42. BOOL GetAllowUpdate();
  43. void SetAllowUpdate(BOOL);
  44. short GetAppearance();
  45. void SetAppearance(short);
  46. short GetBorderStyle();
  47. void SetBorderStyle(short);
  48. VARIANT GetBookmark();
  49. void SetBookmark(const VARIANT&);
  50. short GetCol();
  51. void SetCol(short);
  52. BOOL GetColumnHeaders();
  53. void SetColumnHeaders(BOOL);
  54. BOOL GetCurrentCellVisible();
  55. void SetCurrentCellVisible(BOOL);
  56. BOOL GetCurrentCellModified();
  57. void SetCurrentCellModified(BOOL);
  58. BOOL GetDataChanged();
  59. void SetDataChanged(BOOL);
  60. long GetDataMode();
  61. void SetDataMode(long);
  62. LPUNKNOWN GetDataSource();
  63. void SetDataSource(LPUNKNOWN);
  64. float GetDefColWidth();
  65. void SetDefColWidth(float);
  66. BOOL GetEditActive();
  67. void SetEditActive(BOOL);
  68. BOOL GetEnabled();
  69. void SetEnabled(BOOL);
  70. VARIANT GetFirstRow();
  71. void SetFirstRow(const VARIANT&);
  72. LPDISPATCH GetHeadFont();
  73. void SetHeadFont(LPDISPATCH);
  74. float GetHeadLines();
  75. void SetHeadLines(float);
  76. OLE_HANDLE GetHWnd();
  77. long GetHWndEditor();
  78. BOOL GetMarqueeUnique();
  79. void SetMarqueeUnique(BOOL);
  80. long GetMarqueeStyle();
  81. void SetMarqueeStyle(long);
  82. BOOL GetRecordSelectors();
  83. void SetRecordSelectors(BOOL);
  84. short GetRow();
  85. void SetRow(short);
  86. long GetRowDividerStyle();
  87. void SetRowDividerStyle(long);
  88. float GetRowHeight();
  89. void SetRowHeight(float);
  90. long GetScrollBars();
  91. void SetScrollBars(long);
  92. long GetSelLength();
  93. void SetSelLength(long);
  94. long GetSelStart();
  95. void SetSelStart(long);
  96. CString GetSelText();
  97. void SetSelText(LPCTSTR);
  98. short GetSelStartCol();
  99. void SetSelStartCol(short);
  100. short GetSelEndCol();
  101. void SetSelEndCol(short);
  102. short GetSplit();
  103. void SetSplit(short);
  104. short GetVisibleCols();
  105. short GetVisibleRows();
  106. OLE_COLOR GetBackColor();
  107. void SetBackColor(OLE_COLOR);
  108. OLE_COLOR GetForeColor();
  109. void SetForeColor(OLE_COLOR);
  110. CString GetCaption();
  111. void SetCaption(LPCTSTR);
  112. LPFONTDISP GetFont();
  113. void SetFont(LPFONTDISP);
  114. short GetLeftCol();
  115. void SetLeftCol(short);
  116. BOOL GetAllowArrows();
  117. void SetAllowArrows(BOOL);
  118. BOOL GetTabAcrossSplits();
  119. void SetTabAcrossSplits(BOOL);
  120. long GetTabAction();
  121. void SetTabAction(long);
  122. BOOL GetWrapCellPointer();
  123. void SetWrapCellPointer(BOOL);
  124. long GetApproxCount();
  125. void SetApproxCount(long);
  126. CString GetErrorText();
  127. long GetAddNewMode();
  128. CString GetText();
  129. void SetText(LPCTSTR);
  130. // Operations
  131. public:
  132. void AboutBox();
  133. LPDISPATCH GetColumns(const VARIANT& Index);
  134. LPDISPATCH GetSplits(const VARIANT& Index);
  135. VARIANT GetSelBookmarks(const VARIANT& Index);
  136. short ColContaining(float X);
  137. VARIANT GetBookmark(long RowNum);
  138. void ReBind();
  139. VARIANT RowBookmark(short RowNum);
  140. short RowContaining(float Y);
  141. float RowTop(short RowNum);
  142. void Scroll(long Cols, long Rows);
  143. void Refresh();
  144. LPDISPATCH CaptureImage();
  145. void ClearSelCols();
  146. void ClearFields();
  147. void HoldFields();
  148. short SplitContaining(float X, float Y);
  149. };
  150. //{{AFX_INSERT_LOCATION}}
  151. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  152. #endif // !defined(AFX_MSDGRIDCTRL2_H__13FFC19A_1B6C_4A04_960C_BE2CD3B87B1F__INCLUDED_)