描述:
我在使用ActiveX 控件中的,Microsoft FlexGrid Control (表格控件),中,想将其变成具有Excel那样的使用方式,即当先中一单元格时,在其位置上生在成一Edit Box,并接爱输入,可是如何获得当前选中单元格的位置呢,其控件提供以下函数,应该可以达到此目的,但返回的不像是座标值(很大),不知如何是好,请诸位高手帮忙.
其相关函数如下:
long GetCellLeft();
long GetCellTop();
long GetCellWidth();
long GetCellHeight();
谢谢各位了.
解决方案1:
http://support.microsoft.com/support/kb/articles/Q196/8/33.ASP
196833 - EditGrid.exe: Edit Cells in MSFlexGrid ActiveX Control
... programmatically. EditGrid.exe is a sample that shows the steps needed to implement
this feature in Microsoft Visual C++ using MFC. MORE INFORMATION. The following files
are available for download from the Microsoft Download Center: EditGrid.exe. ...