From: Thomas W. <wi...@ac...> - 2006-01-19 05:56:17
|
Hi, currently the command routing for direct child widgets of a group is broken. One way to demonstrate is to put a popup in a group. Changes made to the selection will not propagate to adam due to the popup not getting the CBN_SELCHANGE WM_COMMAND message. Put a brakepoint in popup_t::implementation_t::event to see what I am talking about. The culprit seems to be group_window_proc the comment preceding its definition says: "Groups don't forward WM_COMMANDS to their parents by default. We trap the windowproc here to do so." This leaves me wondering why WM_COMMANDS should go to parents. AFAICS they should be forwarded to children in the same way it is done in the panel_window_proc. Adding a call to forward_events_to_control to group_window_proc seems to solve the issues with popups and cause no problems. Did I miss something? Thomas -- Thomas Witt wi...@ac... |