如何获取ListBox的VBE对象列表 [英] How To Get The VBE Object List of ListBox
问题描述
我使用SendMessage(hwnd,LB_GETTEXT,Index,Integer(@cbText));
可以获取没有图像的ListBox文本,例如next:
http://ftphi.bccn.net/002/201007/17/110233_12793385466wWR.jpg [ ^ ]
但无法获取图像的ListBox文本,例如下一个:
http://ftphi.bccn.net/002/201007/17/110233_12793385446Ti1.jpg [ ^ ]
中文说明:
我使用SendMessage(hwnd,LB_GETTEXT,Index,Integer(@cbText));
可以获取没有图标的ListBox内容,如下图:
http://ftphi.bccn.net/002/201007/17/110233_12793385466wWR.jpg [ ^ ]
但去获取不到有图片的ListBox的内容,如下图:
http://ftphi.bccn.net/002/201007/17/110233_12793385446Ti1.jpg [ ^ ]
I use SendMessage(hwnd,LB_GETTEXT,Index,Integer(@cbText));
can get the ListBox text for no image,like next:
http://ftphi.bccn.net/002/201007/17/110233_12793385466wWR.jpg[^]
but can''t get the ListBox text for image, like next:
http://ftphi.bccn.net/002/201007/17/110233_12793385446Ti1.jpg[^]
中文说明:
我使用SendMessage(hwnd,LB_GETTEXT,Index,Integer(@cbText));
可以获取没有图标的ListBox内容,如下图:
http://ftphi.bccn.net/002/201007/17/110233_12793385466wWR.jpg[^]
但去获取不到有图片的ListBox的内容,如下图:
http://ftphi.bccn.net/002/201007/17/110233_12793385446Ti1.jpg[^]
推荐答案
SendMessage(hwnd,LB_GETTEXT,Index,Integer(@cbText));
上面的LPARAM参数是什么?它应该是此处所述的将接收字符串的缓冲区的地址. a> [ ^ ].
What is the LPARAM parameter in the above? It should be the address of the buffer that will receive the string as described here[^].
这篇关于如何获取ListBox的VBE对象列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!