Beispiel #1
0
            /// <summary>
            /// Constructs a new instance of this class.
            /// </summary>
            /// <param name="owner">The <see cref="VListBox"/> which owns the collection.</param>
            public SelectedIndexCollectionEnumerator(KryptonVirtualListBox owner)
            {
                int selCount = SendMessage(owner.Handle, LB_GETSELCOUNT, 0, IntPtr.Zero);

                if (selCount > 0)
                {
                    buf = Marshal.AllocCoTaskMem(4 * selCount);
                    SendMessage(owner.Handle, LB_GETSELITEMS, selCount, buf);
                }
            }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of this class
 /// </summary>
 /// <param name="owner">The VListBox which owns the collection</param>
 public SelectedIndexCollection(KryptonVirtualListBox owner)
 {
     this.owner = owner;
 }