当前位置: 代码迷 >> 综合 >> Delphi最大化最小化、窗体变化事件
  详细解决方案

Delphi最大化最小化、窗体变化事件

热度:55   发布时间:2024-01-21 11:21:53.0

private 
   procedure   WMSysCommand(var   Msg:TMessage);message   WM_SYSCOMMAND;

procedure   TForm1.WMSysCommand(var   Msg:   TMessage);
begin
    case   Msg.WParam   of
        SC_MINIMIZE   :   ShowMessage( '最小化 ');
        SC_MAXIMIZE   :   ShowMessage( '最大化 ');
    end;
    inherited;
end;

  相关解决方案