如果你开发VB6插件,需要获得当前IDE中当中光标在文档的坐标,可以用这个子程序:
调用方式:
可以得到sl, sc, el, ec,是iStartLine As Long, iStartCol As Long, iEndline As Long, iEndCol As Long, iTop As Long的简化版。
几个重要属性可以记下: