Arno Garrels wrote:
> Eric,
>
> I guess it helps to remove all pending messages with the given ID
> from the queue when the message ID is unregistered.
>
> One could do that either in custom code or maybe it should
> be added in TIcsWndHandler.UnregisterMessage as below?
Previous code did remove
Msg := 0;
while PeekMessage(LMsg, FHandle, Msg, Msg, PM_REMOVE) do {loop}; // <==
added
if FMsgCnt = 0 then
DeallocateHWnd;
end;
Just a little correction
while PeekMessage(LMsg, FHandle, Msg, Msg, PM_REMOVE) do {loop}; // <==
added
Msg := 0;
Or else you will pass 0 t
--
From: "Arno Garrels"
Sent: Wednesday, August 18, 2010 11:43 AM
To: "ICS support mailing"
Subject: Re: [twsocket] ICS Wnd Control - Possible bug
Eric,
I guess it helps to remove all pending messages with the given ID
fro
Eric,
I guess it helps to remove all pending messages with the given ID
from the queue when the message ID is unregistered.
One could do that either in custom code or maybe it should
be added in TIcsWndHandler.UnregisterMessage as below?
procedure TIcsWndHandler.UnregisterMessage(var Msg: UINT);
Hello all
While I was trying to use TICSWndControl as base class to share handles for
message and consume less OS resources I ran into a very strange problem, that
took me some nights of sleep, after a lot of researching I have found a problem
in WndControl shared handles implementation, and I