First thank u very much for your help. I tried your method, but it does not work better, I think it's beacuse that I added the items before showing the tip window, so the AddString() call will not calls it to redraw. I'm very surprised that by my test, the loading takes very very little time, but it still takes near 1.5 seconds to show the tip window. Why? Cann't I use owner-draw listbox other than standard listbox? Who can help me?
First I'll explain my program. U should have used vc or vb or delphi, etc, shouldn't u? 智能弹出式提示窗就是那种在你键入一个对象后按"."，就弹出一个窗口，提示你这个对象有哪些可用的函数及变量。
I don't know how vc realized this. To me, I write a Owner-draw ListBox(which is called CSmallIconTextListBox), which give u the ability to add a string and a icon to an item. Then, I write a window class( base class is CWnd ) that has no caption and have a member of CSmallIconTextListBox class. Then, when I test it, it seems very slow.
There is an article on CodeGuru, which is "QListCtrl - a popup list box like that in Visual C++ 6.0", u can find it at ActiveX section. The author has the same opnion with me: "The list cannot be filled with all the items at runtime, because it takes long time. "
What he made is an listctrl ActiveX control. I tried, but it does not fit me. And, it'll also takes long time.
Now I'm writing an IDE software similar to vc, and such kind of popup list box is necessary. Please help me out!
When I finished, I'll open this control's source code!