Changed alert sound to beep first and then show up the form. Fixed focus steal from alert form.

This commit is contained in:
gamosoft_cp
2013-04-23 16:25:31 +00:00
parent bdee9b1937
commit 1221c65f35
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -90,7 +90,6 @@ namespace Outlook2013TodoAddIn
{
this.WindowState = FormWindowState.Normal;
}
this.Focus();
this.BringToFront();
}
@@ -108,7 +107,6 @@ namespace Outlook2013TodoAddIn
{
bool result = ShowWindow(this.Handle, SW_SHOW);
//bool result = AnimateWindow(this.Handle, 200, AW_BLEND);
this.BringToFront();
return result;
}
+1 -1
View File
@@ -66,8 +66,8 @@ namespace Outlook2013TodoAddIn
{
NewMailAlert nm = new NewMailAlert(newMail, Properties.Settings.Default.DisplayTimeOut);
// Show the popup without stealing focus
nm.ShowPopup();
SoundHelper.sndPlaySoundW(SoundHelper.MailBeep, SoundHelper.SND_NODEFAULT);
nm.ShowPopup();
}
}