📄 wndproform.pas
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -