
12-08-2021, 09:12
|
 |
Registered User
|
|
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 596
Thanks: 599
Thanked 659 Times in 234 Posts
|
|
Quote:
Originally Posted by DiCaPrIo
function PeekMessage(var lpMsg: TMsg; hWnd: HWND; wMsgFilterMin, wMsgFilterMax, wRemoveMsg: UINT): BOOL; external ' [email protected] stdcall';
function TranslateMessage(const lpMsg: TMsg): BOOL; external ' [email protected] stdcall';
function DispatchMessage(const lpMsg: TMsg): Longint; external ' [email protected] stdcall';
procedure AppProcessMessages;
var
Msg: TMsg;
begin
while PeekMessage(Msg, 0, 0, 0, 1) do
begin
TranslateMessage(Msg);
DispatchMessage(Msg);
end;
end;
|
almost but there is one thing was unknown type: TMsg;
|