Fixing timeout issue in DlgMessage.  To be combined with keiths' changes.