LV_Modify() 函数的“col”选项

使用AHK这么久,直到今天才注意到 ListView 的 LV_Modify() 函数还有个“col”选项,看官方帮助说明:

Col: 指定单词 Col 后紧跟着列号,从此列开始往后应用参数 Col1 和其后参数的内容。此选项通常和LV_Modify()一起使用来修改行中的个别字段,不会影响它们左边的那些字段。

翻译的看不懂?没关系,看官方英文原版:

Col: Specify the word Col followed immediately by the column number at which to begin applying the parameters Col1 and beyond. This is most commonly used with LV_Modify() to alter individual fields in a row without affecting those that lie to their left.

简单说来,就是在使用 LV_Modify() 时,在“option”中使用 colN 选项,可仅修改第“N”列的项内容而对其他项没有影响!

唉,想想以前还在繁琐地用 LV_GetText() 获取每列的值,然后再用 LV_Modify() 挨个替换,劳民伤财啊~~看书不认真的后果,教训!!

posted @ 2013-12-12 22:21  cui-YF  阅读(450)  评论(0编辑  收藏  举报