If you hook the event after doing the needed thing call the base class function or pass it on the message to the parent dialog and rest should work fine.