窗口句柄正确用sendmessage和PostMessage发送消息怎么接收不到
2017-02-28 · 知道合伙人互联网行家
关注
展开全部
接收没什么任何问题
procedure MM(var MSG:TMessage);message WM_KEYDOWN;
procedure TDemo.MM(var MSG: TMessage);
begin
ShowMessage('123');
end;
procedure TDemo.SpeedButton1Click(Sender: TObject);
begin
PostMessage(Handle,WM_KEYDOWN,VK_RETURN,0);
end;
procedure MM(var MSG:TMessage);message WM_KEYDOWN;
procedure TDemo.MM(var MSG: TMessage);
begin
ShowMessage('123');
end;
procedure TDemo.SpeedButton1Click(Sender: TObject);
begin
PostMessage(Handle,WM_KEYDOWN,VK_RETURN,0);
end;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询