
Windows has 4 types of message flow: the normal processing of messages (e.g. WM_MOVE); processing WM_COMMAND notifications (e.g. menus or button presses); processing WM_NOTIFY notifications (e.g. virtual list data requests); events sent by controls to parents (and possibly reflected back to the original sender). Win32GUI uses a std::map< UINT, handler > to process events and has one for the normal flow and one each for the notification flows; I am not sure how it handles reflection/reflected events. The problem with this is that it has 3 maps for event handling with the notification handlers being Windows-specific.
Quick note: this is quite implementation specific, and I intend to change it, as I will port to other platforms. Best, John -- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/ -- http://www.torjo.com/cb/ - Click, Build, Run!