I notice that, in addition to the legacy DialogItemMessage and related C-style structs, there is a C++ DialogItemHookHandler class that has various methods to respond to dialog events. See header file dlogitem.h.
However, there's no SDK example that shows how to create and use a DialogItemHookHandler class instance. Does it have to be hooked in to the dialog manager using something akin to mdlDialog_hookPublish ()?