\r
uses\r
classes,\r
- {$ifdef win32}\r
+ {$ifdef mswindows}\r
windows,messages,wmessages,\r
{$else}\r
lmessages,\r
function killtimer(id:taddrint):boolean;\r
procedure postmessage(msg,wparam,lparam:taddrint);\r
procedure messageloop;\r
- {$ifdef win32}\r
+ {$ifdef mswindows}\r
procedure processmessages; virtual;\r
function processmessage:boolean;\r
{$endif} \r
windows.postmessage(hwndmain,msg,wparam,lparam);\r
end;\r
\r
+{$ifdef mswindows}\r
function twindowobjectbase.ProcessMessage : Boolean;\r
var\r
MsgRec : TMsg;\r
begin\r
while processmessage do;\r
end;\r
+{$endif}\r
\r
procedure twindowobjectbase.messageloop;\r
var\r
MsgRec : TMsg;\r
begin\r
while GetMessage(MsgRec, hwnd(0), 0, 0) do begin\r
+ {$ifdef mswindows}\r
TranslateMessage(MsgRec);\r
+ {$endif}\r
DispatchMessage(MsgRec);\r
if exitloopflag then exit;\r
{if not peekmessage(msgrec,0,0,0,PM_NOREMOVE) then onidle}\r