Message Dialog demo fix

Fixed an issue in ShowMessageDialog where the value of UseAccentForDialogsMenuItem was not being used.