L
lxch_co_95
Unregistered / Unconfirmed
GUEST, unregistred user!
const
WM_LXCH = WM_USER + 10;
type
PLxch = ^TWMLxch;
TWMLxch = packed record
ID: Word;
ok: Word;
Name: DWord;
end;
type
TForm1 = class(TForm)
private
procedure WMChar(var Message: TWMLxch ); message WM_LXCH;
end;
procedure TForm1.WMChar(var Message: TWMLxch );
begin
id := Message.ID;
end;
问题:
Lxch:TWMLxch; lxch.ID := 5;
PostMessage(self.Handle, WM_LXCH, 0, 0);可以让该函数执行,但TWMLxch参数如何传过去呢?
WM_LXCH = WM_USER + 10;
type
PLxch = ^TWMLxch;
TWMLxch = packed record
ID: Word;
ok: Word;
Name: DWord;
end;
type
TForm1 = class(TForm)
private
procedure WMChar(var Message: TWMLxch ); message WM_LXCH;
end;
procedure TForm1.WMChar(var Message: TWMLxch );
begin
id := Message.ID;
end;
问题:
Lxch:TWMLxch; lxch.ID := 5;
PostMessage(self.Handle, WM_LXCH, 0, 0);可以让该函数执行,但TWMLxch参数如何传过去呢?