一个类似QQ窗体自动上卷的程序(3)

/// <summary>
        /// 获得高16位值
        /// </summary>
        /// <param></param>
        /// <returns></returns>
        public static int GET_Y_LPARAM(int lParam) { return (lParam >> 16); }
        /// <summary>
        /// 解析出鼠标的新坐标(相对于窗体的坐标)
        /// </summary>
        /// <param></param>
        /// <returns></returns>
        public static Point GetPointFromLPARAM(int lParam)
        { return new Point(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam)); }

private Point _mouseDownPos = new Point();

private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}

工程文件:/Files/FiredFish/FormHideLikeQQ

linux

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwpzsw.html