msflexgrid.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. #if !defined(AFX_MSFLEXGRID_H__B333C54F_866A_4090_83F5_2204D322628D__INCLUDED_)
  2. #define AFX_MSFLEXGRID_H__B333C54F_866A_4090_83F5_2204D322628D__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. // Dispatch interfaces referenced by this interface
  10. class COleFont;
  11. class CPicture;
  12. class CRowCursor;
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CMSFlexGrid wrapper class
  15. class CMSFlexGrid : public CWnd
  16. {
  17. protected:
  18. DECLARE_DYNCREATE(CMSFlexGrid)
  19. public:
  20. CLSID const& GetClsid()
  21. {
  22. static CLSID const clsid
  23. = { 0x6262d3a0, 0x531b, 0x11cf, { 0x91, 0xf6, 0xc2, 0x86, 0x3c, 0x38, 0x5e, 0x30 } };
  24. return clsid;
  25. }
  26. virtual BOOL Create(LPCTSTR lpszClassName,
  27. LPCTSTR lpszWindowName, DWORD dwStyle,
  28. const RECT& rect,
  29. CWnd* pParentWnd, UINT nID,
  30. CCreateContext* pContext = NULL)
  31. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32. BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  33. const RECT& rect, CWnd* pParentWnd, UINT nID,
  34. CFile* pPersist = NULL, BOOL bStorage = FALSE,
  35. BSTR bstrLicKey = NULL)
  36. { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  37. pPersist, bStorage, bstrLicKey); }
  38. // Attributes
  39. public:
  40. // Operations
  41. public:
  42. long GetRows();
  43. void SetRows(long nNewValue);
  44. long GetCols();
  45. void SetCols(long nNewValue);
  46. long GetFixedRows();
  47. void SetFixedRows(long nNewValue);
  48. long GetFixedCols();
  49. void SetFixedCols(long nNewValue);
  50. short GetVersion();
  51. CString GetFormatString();
  52. void SetFormatString(LPCTSTR lpszNewValue);
  53. long GetTopRow();
  54. void SetTopRow(long nNewValue);
  55. long GetLeftCol();
  56. void SetLeftCol(long nNewValue);
  57. long GetRow();
  58. void SetRow(long nNewValue);
  59. long GetCol();
  60. void SetCol(long nNewValue);
  61. long GetRowSel();
  62. void SetRowSel(long nNewValue);
  63. long GetColSel();
  64. void SetColSel(long nNewValue);
  65. CString GetText();
  66. void SetText(LPCTSTR lpszNewValue);
  67. unsigned long GetBackColor();
  68. void SetBackColor(unsigned long newValue);
  69. unsigned long GetForeColor();
  70. void SetForeColor(unsigned long newValue);
  71. unsigned long GetBackColorFixed();
  72. void SetBackColorFixed(unsigned long newValue);
  73. unsigned long GetForeColorFixed();
  74. void SetForeColorFixed(unsigned long newValue);
  75. unsigned long GetBackColorSel();
  76. void SetBackColorSel(unsigned long newValue);
  77. unsigned long GetForeColorSel();
  78. void SetForeColorSel(unsigned long newValue);
  79. unsigned long GetBackColorBkg();
  80. void SetBackColorBkg(unsigned long newValue);
  81. BOOL GetWordWrap();
  82. void SetWordWrap(BOOL bNewValue);
  83. COleFont GetFont();
  84. void SetRefFont(LPDISPATCH newValue);
  85. float GetFontWidth();
  86. void SetFontWidth(float newValue);
  87. CString GetCellFontName();
  88. void SetCellFontName(LPCTSTR lpszNewValue);
  89. float GetCellFontSize();
  90. void SetCellFontSize(float newValue);
  91. BOOL GetCellFontBold();
  92. void SetCellFontBold(BOOL bNewValue);
  93. BOOL GetCellFontItalic();
  94. void SetCellFontItalic(BOOL bNewValue);
  95. BOOL GetCellFontUnderline();
  96. void SetCellFontUnderline(BOOL bNewValue);
  97. BOOL GetCellFontStrikeThrough();
  98. void SetCellFontStrikeThrough(BOOL bNewValue);
  99. float GetCellFontWidth();
  100. void SetCellFontWidth(float newValue);
  101. long GetTextStyle();
  102. void SetTextStyle(long nNewValue);
  103. long GetTextStyleFixed();
  104. void SetTextStyleFixed(long nNewValue);
  105. BOOL GetScrollTrack();
  106. void SetScrollTrack(BOOL bNewValue);
  107. long GetFocusRect();
  108. void SetFocusRect(long nNewValue);
  109. long GetHighLight();
  110. void SetHighLight(long nNewValue);
  111. BOOL GetRedraw();
  112. void SetRedraw(BOOL bNewValue);
  113. long GetScrollBars();
  114. void SetScrollBars(long nNewValue);
  115. long GetMouseRow();
  116. long GetMouseCol();
  117. long GetCellLeft();
  118. long GetCellTop();
  119. long GetCellWidth();
  120. long GetCellHeight();
  121. long GetRowHeightMin();
  122. void SetRowHeightMin(long nNewValue);
  123. long GetFillStyle();
  124. void SetFillStyle(long nNewValue);
  125. long GetGridLines();
  126. void SetGridLines(long nNewValue);
  127. long GetGridLinesFixed();
  128. void SetGridLinesFixed(long nNewValue);
  129. unsigned long GetGridColor();
  130. void SetGridColor(unsigned long newValue);
  131. unsigned long GetGridColorFixed();
  132. void SetGridColorFixed(unsigned long newValue);
  133. unsigned long GetCellBackColor();
  134. void SetCellBackColor(unsigned long newValue);
  135. unsigned long GetCellForeColor();
  136. void SetCellForeColor(unsigned long newValue);
  137. short GetCellAlignment();
  138. void SetCellAlignment(short nNewValue);
  139. long GetCellTextStyle();
  140. void SetCellTextStyle(long nNewValue);
  141. short GetCellPictureAlignment();
  142. void SetCellPictureAlignment(short nNewValue);
  143. CString GetClip();
  144. void SetClip(LPCTSTR lpszNewValue);
  145. void SetSort(short nNewValue);
  146. long GetSelectionMode();
  147. void SetSelectionMode(long nNewValue);
  148. long GetMergeCells();
  149. void SetMergeCells(long nNewValue);
  150. BOOL GetAllowBigSelection();
  151. void SetAllowBigSelection(BOOL bNewValue);
  152. long GetAllowUserResizing();
  153. void SetAllowUserResizing(long nNewValue);
  154. long GetBorderStyle();
  155. void SetBorderStyle(long nNewValue);
  156. long GetHWnd();
  157. BOOL GetEnabled();
  158. void SetEnabled(BOOL bNewValue);
  159. long GetAppearance();
  160. void SetAppearance(long nNewValue);
  161. long GetMousePointer();
  162. void SetMousePointer(long nNewValue);
  163. CPicture GetMouseIcon();
  164. void SetRefMouseIcon(LPDISPATCH newValue);
  165. long GetPictureType();
  166. void SetPictureType(long nNewValue);
  167. CPicture GetPicture();
  168. CPicture GetCellPicture();
  169. void SetRefCellPicture(LPDISPATCH newValue);
  170. CString GetTextArray(long index);
  171. void SetTextArray(long index, LPCTSTR lpszNewValue);
  172. short GetColAlignment(long index);
  173. void SetColAlignment(long index, short nNewValue);
  174. long GetColWidth(long index);
  175. void SetColWidth(long index, long nNewValue);
  176. long GetRowHeight(long index);
  177. void SetRowHeight(long index, long nNewValue);
  178. BOOL GetMergeRow(long index);
  179. void SetMergeRow(long index, BOOL bNewValue);
  180. BOOL GetMergeCol(long index);
  181. void SetMergeCol(long index, BOOL bNewValue);
  182. void SetRowPosition(long index, long nNewValue);
  183. void SetColPosition(long index, long nNewValue);
  184. long GetRowData(long index);
  185. void SetRowData(long index, long nNewValue);
  186. long GetColData(long index);
  187. void SetColData(long index, long nNewValue);
  188. CString GetTextMatrix(long Row, long Col);
  189. void SetTextMatrix(long Row, long Col, LPCTSTR lpszNewValue);
  190. void AddItem(LPCTSTR Item, const VARIANT& index);
  191. void RemoveItem(long index);
  192. void Clear();
  193. void Refresh();
  194. CRowCursor GetDataSource();
  195. void SetDataSource(LPDISPATCH newValue);
  196. BOOL GetRowIsVisible(long index);
  197. BOOL GetColIsVisible(long index);
  198. long GetRowPos(long index);
  199. long GetColPos(long index);
  200. short GetGridLineWidth();
  201. void SetGridLineWidth(short nNewValue);
  202. short GetFixedAlignment(long index);
  203. void SetFixedAlignment(long index, short nNewValue);
  204. BOOL GetRightToLeft();
  205. void SetRightToLeft(BOOL bNewValue);
  206. long GetOLEDropMode();
  207. void SetOLEDropMode(long nNewValue);
  208. void OLEDrag();
  209. };
  210. //{{AFX_INSERT_LOCATION}}
  211. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  212. #endif // !defined(AFX_MSFLEXGRID_H__B333C54F_866A_4090_83F5_2204D322628D__INCLUDED_)