[haiku-development] Re: weird messaging behaviour

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 02 Nov 2009 17:15:54 +0100

Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx> wrote:
> 2009/11/2 Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>:
> > By default, the looper is set as the next handler for all of its
> > handlers. If you do not want this behaviour, you would have to call
> > SetNextHandler(NULL) on your handler explicitly.
> Does this work also only for a specific message, or globally ?

Since you call that function on your handler, it would cause all
messages that go to that handler, to only go to that handler.
Usually, if you actually handle a message in MessageReceived(), you are
not calling the MessageReceived() of your inherited class, so no
forwarding happens in that case.

Bye,
   Axel.


Other related posts: