X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/82d4e52fba54be50d719f6185ec381f2dc87fc6c..3745aa61ef489e4b143b5c753a006d0613a0297f:/wcore.pas diff --git a/wcore.pas b/wcore.pas index f88aa53..8b402b5 100755 --- a/wcore.pas +++ b/wcore.pas @@ -1,8 +1,3 @@ -{ Copyright (C) 2005 Bas Steendijk and Peter Green - For conditions of distribution and use, see copyright notice in zlib_license.txt - which is included in the package - ----------------------------------------------------------------------------- } - unit wcore; { @@ -65,7 +60,7 @@ procedure exitmessageloop; procedure processmessages; var - onshutdown:procedure(s:string); + onshutdown:procedure(s:ansistring); implementation @@ -367,8 +362,9 @@ var Msg : TMsg; begin Result := FALSE; - if PeekMessage(Msg, hwndwcore, 0, 0, PM_REMOVE) then begin + if PeekMessage(Msg, 0, 0, 0, PM_REMOVE) then begin Result := TRUE; + TranslateMessage(MsgRec); DispatchMessage(Msg); end; end; @@ -380,3 +376,4 @@ end; end. +