当窗体FormBorderStyle属性为None时候如何拖动窗口边缘调整窗口大小呀
当窗体FormBorderStyle属性为None时候如何拖动窗口边缘调整窗口大小呀
------解决方案--------------------
我只知道移动窗体,楼主的要求还真有点难度,思考中。
#region 移動窗體
[DllImport("user32.dll")]
public static extern bool ReleaseCapture();
[DllImport("user32.dll")]
public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
public const int WM_SYSCOMMAND = 0x0112;
public const int SC_MOVE = 0xF010;
public const int HTCAPTION = 0x0002;
private void FrmLogin_MouseDown(object sender, MouseEventArgs e)
{
ReleaseCapture();
SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
}
#endregion