首页 > 移动平台 > 详细

C# 弹出层移动

时间:2019-10-23 13:27:51      阅读:87      评论:0      收藏:0      [点我收藏+]

 groupPrint.MouseDown += GroupBox1_MouseDown;

#region 弹出层移动
        [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "ReleaseCapture")]
        public static extern void ReleaseCapture();
        [System.Runtime.InteropServices.DllImport("user32.dll", EntryPoint = "SendMessage")]
        public static extern void SendMessage(int hwnd, int wMsg, int wParam, int lParam);
        private void GroupBox1_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                ReleaseCapture();
                SendMessage((int)groupPrint.Handle, 0xA1, 2, 0);

            }
        }

C# 弹出层移动

原文:https://www.cnblogs.com/LuoEast/p/11725414.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!