Пример #1
0
            public HeaderControl(LnFListView m)
            {
                parent = m;
                //Get the header control handle
                IntPtr header = Win32.SendMessage(parent.Handle, (0x1000 + 31), IntPtr.Zero, IntPtr.Zero);

                this.AssignHandle(header);
            }
Пример #2
0
        public LnFListViewControl()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            listView               = new LnFListView();
            listView.MouseUp      += new MouseEventHandler(OnMouseUp);
            listView.ColumnClick  += new ColumnClickEventHandler(OnColumnClick);
            listView.ItemCheck    += new ItemCheckEventHandler(OnItemCheck);
            listView.Location      = new Point(2, 2);
            listView.Size          = new Size(724, 100);
            listView.Parent        = this;
            listView.FullRowSelect = true;
            listView.Anchor        = ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                        | System.Windows.Forms.AnchorStyles.Right | AnchorStyles.Left)));
            this.pnlBorder.Controls.Add(this.listView);

            CollectionChanged  += new LnFListView.VoidEventHandler(OnItemsChanged);
            listView.MouseMove += new MouseEventHandler(OnMouseMove);

            listView.Scrolled += new LnFListView.VoidEventHandler(OnItemsChanged);

            listView.SelectedIndexChanged += new EventHandler(OnSelectedChanged);
        }