光能处理最小化按钮消息,Win + D处理不了,好像没有楼主说的动画,难道我的机器太好了?<br><br>unit Main;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br> Dialogs, StdCtrls;<br><br>type<br> TForm1 = class(TForm)<br> Button1: TButton;<br> private<br> public<br> { Public declarations }<br> procedure OnMin(var Msg: TMessage); message WM_SYSCOMMAND;<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.DFM}<br><br>procedure TForm1.OnMin(var Msg: TMessage);<br>begin<br> if Msg.WParam = SC_MINIMIZE then begin<br> TWMSize(Msg).Result := -1;<br> end<br> else<br> inherited;<br>end;<br><br><br>end.