DZ-Jay wrote:
> On Oct 17, 2007, at 06:52, Arno Garrels wrote:
>> function TFoo.MsgHandlersCount : Integer;
>> begin
>>     Result := 1 + inherited MsgHandlersCount;
>> end;
>> 
>> procedure TFoo.AllocateMsgHandlers;
>> begin
>>     inherited AllocateMsgHandlers;
>>     FMsg_WM_FOO := FWndHandler.AllocateMsgHandler(Self);
>> end;
>> 
>> procedure TFoo.FreeMsgHandlers;
>> begin
>>     if Assigned(FWndHandler) then
>>         FWndHandler.UnregisterMessage(FMsg_WM_FOO);
>>     inherited FreeMsgHandlers;
>> end;
> 
> This only to register new custom messages, right? 

Correct, never send/post any _custom_ messages to V6 component
windows except they have been registered like that before.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html





-- 
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

Reply via email to