6
68686688
Unregistered / Unconfirmed
GUEST, unregistred user!
如下,我在按F10时他不执行GETKEYBORD_INPUT( MSG),不知道为什么?
procedure TForm2.SCREEN_INPUT(var Msg: TMsg
var Handled: Boolean);
begin
CASE Msg.message OF
WM_MOUSEMOVE : BEGIN
BKFREETIMES := 0;
END;
256 : BEGIN
BKFREETIMES := 0;
GETKEYBORD_INPUT( MSG);
END;
END;
Handled := FALSE;
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
APPLICATION.OnMessage := SCREEN_INPUT;
end;
procedure TForm2.SCREEN_INPUT(var Msg: TMsg
var Handled: Boolean);
begin
CASE Msg.message OF
WM_MOUSEMOVE : BEGIN
BKFREETIMES := 0;
END;
256 : BEGIN
BKFREETIMES := 0;
GETKEYBORD_INPUT( MSG);
END;
END;
Handled := FALSE;
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
APPLICATION.OnMessage := SCREEN_INPUT;
end;