BrightIdeasSoftware.ObjectListView.HandleDestroy C# (CSharp) Method

HandleDestroy() protected method

Handle the underlying control being destroyed
protected HandleDestroy ( Message &m ) : bool
m Message
return bool
        protected virtual bool HandleDestroy(ref Message m)
        {
            //System.Diagnostics.Debug.WriteLine("WM_DESTROY");

            // Recreate the header control when the listview control is destroyed
            this.BeginInvoke((MethodInvoker)delegate {
                this.headerControl = null;
                this.HeaderControl.WordWrap = this.HeaderWordWrap;
            });

            // When the underlying control is destroyed, we need to recreate
            // and reconfigure its tooltip
            if (this.cellToolTip == null)
                return false;

            this.cellToolTip.PushSettings();
            base.WndProc(ref m);
            this.BeginInvoke((MethodInvoker)delegate {
                                                this.UpdateCellToolTipHandle();
                                                this.cellToolTip.PopSettings();
                                            });
            return true;
        }
ObjectListView