BrightIdeasSoftware.ObjectListView.HandleWindowPosChanging C# (CSharp) Method

HandleWindowPosChanging() protected method

Handle the window position changing.
protected HandleWindowPosChanging ( Message &m ) : bool
m Message The m to be processed
return bool
        protected virtual bool HandleWindowPosChanging(ref Message m)
        {
            const int SWP_NOSIZE = 1;

            NativeMethods.WINDOWPOS pos = (NativeMethods.WINDOWPOS)m.GetLParam(typeof(NativeMethods.WINDOWPOS));
            if ((pos.flags & SWP_NOSIZE) == 0) {
                if (pos.cx < this.Bounds.Width) // only when shrinking
                    // pos.cx is the window width, not the client area width, so we have to subtract the border widths
                    this.ResizeFreeSpaceFillingColumns(pos.cx - (this.Bounds.Width - this.ClientSize.Width));
            }

            return false;
        }
ObjectListView