Главная страница | назад





Article #17305: Child parent message relations?

 Question and Answer Database

FAQ2305C.txt   Child parent message relations?
Category   :OWL
Platform    :All
Product    :C++Builder  ALL

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)


 

7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99