[lazarus] More Native Win32 stuff (Pascal,canyouhelphere?)

Shane Miller SMiller1 at stvgb.org
Tue Aug 10 12:59:08 EDT 1999


I would have to agree with Michael.  What messages are you trying to capture that you currently aren't capturing?  If your missing some, simply add some probcedure's in TCOntrol with the
message LM_MEssage
definition.  Then those procedure's will call those fuinctions.  If your interested in getting ALL messages to ONE procedure, then implement a call to your win32interface that assigns the windowproc to TCOntrol's windowproc.

Shane


>>> "Michael A. Hess" <mhess at miraclec.com> 08/10 11:32 AM >>>
Jeff Wormsley wrote:
> 
> Thats the whole point, it can't be in the interfaces or win32int.pp
> file (and that is the name I am using).  The reason being that you
> must have a unique message handler (WinProc is the usual name) for
> each windows control.
>
<snip>
> 
> The LCL TControl however, does not define or implement a message
> handler.

Yes it does. The message handling that is being currently done is on a
control by control bases. Every TControl object has it's OWN message
handling. You don't find this code in the LCL because it is handled by
the RTL. That is where the base TObject is defined. Every TObject has
it's own message handler. That is what Dispatch is doing. When you call
Dispatch you are calling Dispatch for that object and it goes through
it's table of messages to determine which one it needs to deal with.

I guess this is why I am confused by your problem. There shouldn't be
any problem having Windows call the same messaging handling that we are
using for GTK. It is basically setup the same way that the Delphi
messages are.

What am I missing???


-- 
==== Programming my first best destiny! ====

Michael A. Hess      Miracle Concepts, Inc.
mhess at miraclec.com   http://www.miraclec.com 

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list