Ejemplo n.º 1
0
        readonly FilteredListView cmp_lstvew = null; // owning listview

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructor, we need the instance of the ListViewFilter.
        /// </summary>
        /// <param name="listview">Owner</param>
        public FilteredListViewSorter( FilteredListView listview )
        {
            cmp_lstvew = listview;
        }
Ejemplo n.º 2
0
        private bool hdr_sorder = true; // sort order

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructor.  Save the owning ListView control object and get our handle
        /// assigned from it's slave controls entry 0, without it no messages are sent.
        /// </summary>
        /// <param name="lv">Owner</param>
        public FilteredListViewHeader( FilteredListView listview, bool filtered,
            int column, bool order)
        {
            // save the listview instance and set initial properties
            hdr_lstvew = listview;
            hdr_sorder = order;
            hdr_column = column;

            // set the handle to this control.  the first dialog item
            // for a listview is this header control...
            AssignHandle( GetDlgItem( hdr_lstvew.Handle, 0 ) );

            // create the collection properties
            DataType = new ColumnDataTypeCollection( this );
            Filter = new ColumnFilterCollection( this );
            Names = new ColumnNamesCollection( this );
            SizeInfo = new ColumnSizeInfoCollection( this );
            Alignment = new ColumnAlignmentCollection( this );

            // last set the filtered property VIA SET{} METHOD
            Filtered = filtered;
        }