unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
private
{ Private declarations }
procedure WMCreate(var Message: TWMCreate); message WM_CREATE;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{ TForm1 }
procedure TForm1.WMCreate(var Message: TWMCreate);
begin
inherited;
with Message.CreateStruct^ do
Caption := Format('Width=%d, Height=%d', [cx, cy]);
end;
end.