[ Home | Contents | Search | Next | Previous | Up ]
Date: 14 Sep 2000
Time: 15:34:36
Remote Name: 212.50.14.130
Q. I've been looking for a way to do the equivalent of MFC/ATL message reflection with OWL. Specifically, I'd like to have a TListWindow-derived class that handles its own LVN_GETDISPINFO messages, rather than being forced to handle them at the parent window.
A. Use the macro EV_LVN_GETDISPINFO(-1, LvnGetDispInfo), in the response table of the TListWindow-derived class. This should work for other notifications as well. The message reflection of WM_COMMAND and WM_NOTIFY is a part of the OWL, examine closely the message handling in TWindow source to see how it works.
Jogy