Paul wrote: > Hi Arno > >> not required, you can also use PostThreadMessage(). > Can I trap my own messages within the message pump here ?
No problem i.e.: while GetMessage(Msg, 0, 0, 0) do begin if Msg.message = WM_USER + 1 then TWSocket(Msg.WParam).ThreadAttach else if Msg.message = WM_USER + 2 then begin TWSocket(Msg.WParam).ThreadDetach; Postmessage(Form1.Handle, WM_USER + 3, Msg.WParam, 0); end else begin TranslateMessage(Msg); DispatchMessage(Msg); end; end; > >> Think fully event-driven ;-) > It' the only I can ;-) > > > Paul -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be