zoukankan      html  css  js  c++  java
  • C# 弹出层移动

     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);

                }
            }

  • 相关阅读:
    Java学习十八
    Java学习十七
    Java学习十六
    毕设进度01
    Java学习十五
    Java学习十四
    Java学习十三
    爬虫基础三
    随笔
    火车车厢重排问题--队列模拟
  • 原文地址:https://www.cnblogs.com/LuoEast/p/11725414.html
Copyright © 2011-2022 走看看