VB6中的Listview控件

时间:2016-06-08 04:21:30

标签: listview vb6

单击listview中的项目时,我需要隐藏listview控件。我写了一个例子。但它没有用。我添加了Column标题和一些项目。 我使用了' windows common control 6.0(sp6)'

Private Sub ListView1_ItemClick(ByVal Item As MSComctlLib.ListItem)
  ListView1.Visible = False
End Sub

请帮帮我。

1 个答案:

答案 0 :(得分:1)

import multiprocessing import numpy as np # will hold the (implicitly mem-shared) data data_array = None # child worker function def job_handler(num): # built-in id() returns unique memory ID of a variable return id(data_array), np.sum(data_array) def launch_jobs(data, num_jobs=5, num_worker=4): global data_array data_array = data pool = multiprocessing.Pool(num_worker) return pool.map(job_handler, range(num_jobs)) # create some random data and execute the child jobs mem_ids, sumvals = zip(*launch_jobs(np.random.rand(10))) # this will print 'True' on POSIX OS, since the data was shared print(np.all(np.asarray(mem_ids) == id(data_array))) 向其返回控制权时,ListView似乎恢复了自己的可见性,ItemClick似乎也是如此。

这有效:

MouseDown