- 1、本文档共19页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
MsFlexGrid用法大全(转)(国外英文资料)
MsFlexGrid用法大全(转)(国外英文资料)
Use of the MsFlexGrid control in VB (collection)
assigns the text to the MsFlexGrid cell
MsFlexGrid. TextMatrix (3, 1) = Hello
inserts the background image in the MsFlexGrid control cell
Set MsFlexGrid. CellPicture = LoadPicture ( C: \ temp \ 1.bmp )
selects a unit
MsFlexGrid. Row = 1
MsFlexGrid. Col = 1
USES bold to format the currently selected unit
MsFlexGrid. CellFontBold = True
adds a new line
Using the AddItem method, the content of the different cells is separated by the Tab character
Dim the row as a string
Row = AAA BBB
MsFlexFrid1. AddItem row
how to implement the MSFlexGrid control singular line background is white, the double-count line background is blue?
Dim I As an Integer
With MSFlexGrid1
AllowBigSelection = True to set the grid style
The FillStyle = flexFillRepeat
For I = 0 To.rows 1
A: Col =.col =.fixedcols
ColSel =.cols () -.fixedcols - 1
If I Mod 2 = 0 Then
CellBackColor = hc0c0c0
The Else
CellBackColor = vbBlue blue
End the If
Next I
End With
How does MSFlexGrid control move to the last line
Msflexgrid1.toprow = msflexgrid1.rows - 1
how to determine whether msflexgrid has scrollbars
Declare Function GetScrollRange Lib user32 (ByVal hWnd As Long, ByVal nBar As Long, lpMinPos As)
Long, lpMaxPos As Long) As Long
Public Const SB_HORZ = h0
Public Const SB_VERT = H1
The Public Function VsScroll (MshGrid As MSHFlexGrid) As Boolean determines the visibility of the horizontal scroll bar
Dim As Long I
VsScroll = False
I = GetScrollRange (MshGrid. HWnd, SB_HORZ, lpMinPos, lpMaxPos)
If lpMaxPos lpMinPos Then VsScroll = True
End the Function
The Public Function HeScroll (MshGrid As MSHFlexGrid) As Boolean determines the visibility of the vertical scroll bar
Dim As Long I
HeScroll = False
I = GetScrollRange (MshGrid. HWnd, SB_VERT, lpMinPos, lpMaxPos)
If lpMaxPos lpMinPos Then HeScroll = True
End the Function
When program runs, you want to dynamically add the number of MSFlexgrid columns
Insert a column after
文档评论(0)