Class used to capture window messages for the header of the list view control.
Наследование: System.Windows.Forms.NativeWindow
Пример #1
0
        /// <summary>
        /// Handle the underlying control being destroyed
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        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;
            else {
                this.cellToolTip.PushSettings();
                base.WndProc(ref m);
                this.BeginInvoke((MethodInvoker)delegate {
                    this.UpdateCellToolTipHandle();
                    this.cellToolTip.PopSettings();
                });
                return true;
            }
        }