C#无边框窗体的移动
来源:互联网 发布:powerdesigner mysql 编辑:程序博客网 时间:2024/04/29 09:10
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public const int WM_NCLBUTTONDOWN = 0xA1;
public const int HTCAPTION = 0x2;
[DllImportAttribute("user32.dll")]
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
[DllImportAttribute("user32.dll")]
public static extern bool ReleaseCapture();
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
ReleaseCapture();
SendMessage(Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0);
}
}
}
- C# 无边框窗体的移动
- C#无边框窗体的移动
- C#无边框窗体的移动
- C# 无边框窗体移动
- C# 移动无边框窗体
- c#移动无边框窗体
- C# 创建无边框,任意样式窗体,无边框窗体的移动
- [转]C#无边框窗体移动的三种方法
- [转]C#无边框窗体移动的三种方法
- [转]C#无边框窗体移动的三种方法
- C# winform中无边框窗体的移动
- C# 无边框窗体移动和改变大小的实现
- C#无边框的窗口移动和设置窗体大小
- C#移动无边框窗体的简单方法
- 使用C#实现移动无边框窗体
- 使用C#实现移动无边框窗体
- 使用C#实现移动无边框窗体
- C#中无边框窗体移动
- NBA-15-8天安精品浪漫雪花灯浪漫满屋日本人气产品
- office插件开发时去掉ATL向导所生成的默认接口
- 大学生活快要结束了,才想要珍惜~~~
- BCG库MDI中Tab子框架窗口中的控制条的一个小Bug的解决方法
- substring,slice,substr
- C#无边框窗体的移动
- Head First C# 中文版 图文皆译 第八章 枚举和集合 page366
- 关于图片的绑定
- javascript遍历文件--JS另类应用
- J2ME安全应用——SATSA API
- C++ GUI Qt 4 编程(第二版)
- 使用API函数GetProcAddress的注意事项
- SHLWAPI 和 CRT (C Runtime) 字符串处理函数的区别
- char、varchar、text、ntext、bigint、int、smallint、tinyint和bit的区别及数据库的数据类型(转)