VB5, VB6 | Retrieve List Elements |
|
Listing 1 The SuperListBox control invokes this private procedure internally once for each element that must be displayed in its list portion. If the OnDemandMode Boolean variable is False, then the control can retrieve the element from its private Items() array of strings. If OnDemandMode is True and an object has been passed to the SetOwner method (and stored in the m_Parent variable), then the control asks for the element through the GetItem method of the ISuperListBox-Event interface. Finally, if on-demand loading is active but the SetOwner method hasn't been called, the control merely raises a GetItem event in its container form. |