OWL NExt - Knowledge Base

[ Home | Contents | Search | Next | Previous | Up ]

Child parent message relations?

Date: 12/1/99
Time: 9:55:44 PM

Question:

I have a class derived form TTreeWindow as a child to a
TPaneSplitter (very much like the Explorer).  The messages
(TVN_...) from my window seem to be rooted to the parent
window, where I can catch them without problem. Is it possible
to respond to the messages within the tree window ?

Answer:

Yes it is.  It is a little trick that will work for all Child
windows that want to respond to parent caught messages.  When
you define your Response table, set the events control id to
UINT_MAX (or -1) like so:

EV_...(UINT_MAX, handler)

Last changed: July 14, 2001