sparta: add FillChars to initialize message records

git-svn-id: trunk@51180 -
This commit is contained in:
ondrej 2016-01-03 23:51:30 +00:00
parent 0015151c63
commit f90e434afc

View File

@ -856,6 +856,7 @@ var
LMsg: TLMKeyUp;
begin
LWndProc := FDesignedForm.Form.WindowProc;
FillChar(LMsg{%H-}, SizeOf(LMsg), 0);
LMsg.msg := CN_KEYDOWN;
LMsg.CharCode := Key;
LWndProc(TLMessage(LMsg));
@ -869,6 +870,7 @@ var
LMsg: TLMKeyUp;
begin
LWndProc := FDesignedForm.Form.WindowProc;
FillChar(LMsg{%H-}, SizeOf(LMsg), 0);
LMsg.msg := CN_KEYUP;
LMsg.CharCode := Key;
LWndProc(TLMessage(LMsg));