vb怎么改变外部程序的SysListView32的选定行?
vb怎么改变外部程序的SysListView32的选定行?比如现在选定的是第1行,我想让他选定第2行,该怎么弄呢?谢谢 --------------------编程问答-------------------- 解决了,来一个人接分 --------------------编程问答-------------------- 我来了,我想问问,你是否知道怎么通过PostMessage选择所有行? --------------------编程问答-------------------- 1年都没有人来接分,lz给我吧 --------------------编程问答-------------------- myItem.mask = LVIF_TEXT
myItem.pszText = pStrBufferMemory
myItem.cchTextMax = 10
myItem.state = LVIS_SELECTED Or LVIS_FOCUSED Or LVIS_ACTIVATING
myItem.stateMask = LVIS_SELECTED
pMyItemMemory = VirtualAllocEx(pHandle, 0, Len(myItem), MEM_COMMIT, PAGE_READWRITE)
Call WriteProcessMemory(pHandle, pMyItemMemory, myItem, Len(myItem), 0)
Call SendMessage(hwndlistview, LVM_SETITEMSTATE, index1, ByVal pMyItemMemory) --------------------编程问答--------------------
补充:VB , API