BrightIdeasSoftware.ObjectListView.HandlePaint C# (CSharp) Method

HandlePaint() protected method

Handle the WM_PAINT event
protected HandlePaint ( Message &m ) : bool
m Message
return bool
        protected virtual bool HandlePaint(ref Message m)
        {
            //System.Diagnostics.Debug.WriteLine("> WMPAINT");

            // We only want to custom draw the control within WmPaint message and only
            // once per paint event. We use these bools to insure this.
            this.isInWmPaintEvent = true;
            this.shouldDoCustomDrawing = true;
            this.prePaintLevel = 0;

            this.ShowOverlays();

            this.HandlePrePaint();
            base.WndProc(ref m);
            this.HandlePostPaint();
            this.isInWmPaintEvent = false;
            //System.Diagnostics.Debug.WriteLine("< WMPAINT");
            return true;
        }
ObjectListView