回复 1楼qianwn的帖子
1. setColHidden() 这个方法在DLL中不存在,应该用哪个函数代替?
- BOOL TSpread::IsColHidden(SS_COORD Col);
复制代码
2.SetTypeNumMin() 这个方法在DLL中不存在,应该用哪个函数代替?
帮助文档中搜索:SSSetTypeNumberEx
3.SetTypeHAlign() SetTypeVAlign() 这个方法在DLL中不存在,应该用哪个函数代替?
可以通过相应单元格类型的 Style 进行设置:
- Style Currency style
- Use the (|) OR operator and combine the following values as indicated:
- Constant Description
- SSS_ELLIPSES Displays an ellipsis (...) when text is too long to fit in the cell
- SSS_NEGRED Displays negative numbers as red
- Use one of the following values:
- SSS_ALIGN_TOP (Default) Aligns text at the top of cells
- SSS_ALIGN_BOTTOM Aligns text at the bottom of cells
- SSS_ALIGN_VCENTER Centers text vertically within the cell
- Use one of the following values:
- SSS_ALIGN_LEFT (Default) Aligns text to the left in the cell
- SSS_ALIGN_RIGHT Aligns text to the right in the cell
- SSS_ALIGN_CENTER Centers text horizontally within the cell
- Use one of the following values:
- SSS_TEXTORIENT_VERT_LTR Displays text vertically in the cell and wraps from left to right
- SSS_TEXTORIENT_DOWN Rotates text 90 degrees (to "3 o'clock")
- SSS_TEXTORIENT_UP Rotates text 270 degrees (to "9 o'clock")
- SSS_TEXTORIENT_INVERT Rotates text 180 degrees (to "6 o'clock")
- SSS_TEXTORIENT_VERT_RTL Displays text vertically in the cell and wraps from right to left
复制代码
3.SetCellType() 这个方法原来用的是SetCellType(2),转换为DLL后 SetCelltype(1,0,2) 最后一个样式参数2无效,不知道最后的那个样式参数应该怎么写?
- C++
- BOOL TSpread::GetCellType(SS_COORD Col, SS_COORD Row, LPSS_CELLTYPE lpCellType);
- BOOL TSpread::SetCellType(SS_COORD Col, SS_COORD Row, LPSS_CELLTYPE lpCellType);
- BOOL TSpread::SetCellTypeRange(SS_COORD Col, SS_COORD Row, SS_COORD Col2, SS_COORD Row2, LPSS_CELLTYPE lpCellType);
复制代码
4.setCOl,SetROW方法是否在DLL中已经不存在?直接用SetValue就可以了?
- C++
- int TSpread::GetValue(SS_COORD Col, SS_COORD Row, LPTSTR lpBuffer);
- BOOL TSpread::SetValue(SS_COORD Col, SS_COORD Row, LPCTSTR lpData);
- BOOL TSpread::SetValueRange(SS_COORD Col, SS_COORD Row, SS_COORD Col2, SS_COORD Row2, LPCTSTR lpData);
复制代码
5.GetText()方法现在是否直接用 GetData() h或者GetValue()代替?
对应方法为:SSGetData, SSGetFloat, SSGetInteger |