wndproform.pas
来自「Delphi高级开发指南是开发程序的好帮手」· PAS 代码 · 共 39 行
PAS
39 行
unit WndProForm;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
private
Last: Integer;
public
procedure WndProc (var Message: TMessage); override;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
uses
ViewMsg, MList;
procedure TForm1.WndProc (var Message: TMessage);
begin
if not (Message.Msg = Last) then
begin
with Form2.Listbox1 do
ItemIndex := Items.Add (GetMessageName (Message.Msg));
Last := Message.Msg;
end;
inherited WndProc (Message);
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?