晚上刚好有空,试了一下截获标题栏双击事件,代码如下:<br><br>unit Unit1;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;<br><br>type<br> TForm1 = class(TForm)<br> private<br> { Private declarations }<br> procedure WMNCLButtonDblClick(var Message: TWMNCLBUTTONDBLCLK);<br> message WM_NCLBUTTONDBLCLK;<br> public<br> { Public declarations }<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.DFM}<br><br>{ TForm1 }<br><br>procedure TForm1.WMNCLButtonDblClick(var Message: TWMNCLBUTTONDBLCLK);<br>begin<br> if Message.HitTest = HTCAPTION then<br> begin<br> // ShowMessage('Double Click');<br> ...<br> end<br> else inherited;<br>end;<br><br>end.<br>