Delphi 拖动
2024-09-04 11:43:04
interface uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; type
TForm1 = class(TForm)
private
{ Private declarations }
protected
procedure WMNCHitTest(var M: TWMNCHitTest);
message WM_NCHitTest; public
{ Public declarations }
end; var
Form1: TForm1; implementation {$R *.DFM}
procedure TForm1.WMNCHitTest(var M: TWMNCHitTest);
begin
inherited;
//继承原有的消息处理函数
if M.Result = htClient then
//判断消息结果是否htClient,是则将此结果改成htCaption
M.Result := htCaption;
end; end.
最新文章
- RunTime的简单使用
- safe RGB colors
- Windows7下出现“不支持此接口”的解决方案
- 【py分析网页】可能有用的-re去除网页上的杂碎
- 微软职位内部推荐-SDE2 (Windows driver)
- SPRING IN ACTION 第4版笔记-第四章ASPECT-ORIENTED SPRING-008-带参数的ADVICE
- 在什么情况下使用struct,struct与class的区别
- SecureCRT 连接虚拟机Linux
- WordCount项目
- Quartz基本使用
- windows安装gcc编译器
- pycharm import pygame 出现报错:No module named 'pygame'
- Spark 准备篇-基本原理
- 设计模式-结构型模式, mvc 模型视图控制器模式(8)
- App导航设计全面梳理——附免费原型模版!
- POJ 2387 Til the Cows Come Home 【最短路SPFA】
- WebSocket In ASP.NET Core(一)
- 第三百八十五节,Django+Xadmin打造上线标准的在线教育平台—登录功能实现,回填数据以及错误提示html
- WebService(JAX-WS、XFire、Axis三种)获取客户端ip
- 2014.1.4 cxf spring webservice