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

Michael A. Hess mhess at miraclec.com
Tue Aug 10 12:32:47 EDT 1999


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






More information about the Lazarus mailing list