how to put a hook on all events?

Armel Asselin armelasselin at hotmail.com
Tue Feb 6 06:08:01 PST 2007


Hello,

i'm wondering if i am doing well. I want to put a hook which should be call 
after any top level window is displayed (and potentially just before it is 
dismissed). by TLW, i mean my main frame, any dialog and even message boxes.

I am thinking of putting some code in : wxMyApp::HandleEvent ( ).
is this the right place or is there a better place? I fear to get several 
call for the same event if the event tells to let parent class do its job.

Regards
Armel

--  








More information about the wx-users mailing list