diff --git a/Outlook2013TodoAddIn/Constants.cs b/Outlook2013TodoAddIn/Constants.cs index a140076..fde142a 100644 --- a/Outlook2013TodoAddIn/Constants.cs +++ b/Outlook2013TodoAddIn/Constants.cs @@ -42,6 +42,11 @@ namespace Outlook2013TodoAddIn /// public const string DonateUrl = "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZXYEC3PM6K7TQ&lc=US&item_name=Outlook2103AddInBuyBeer¤cy_code=USD&bn=PP%2dDonationsBF%3amybutton%2epng%3aNonHosted"; + /// + /// Topmost value + /// + public const int WS_EX_TOPMOST = 0x00000008; + #endregion "Variables" } } \ No newline at end of file diff --git a/Outlook2013TodoAddIn/Forms/NewMailAlert.cs b/Outlook2013TodoAddIn/Forms/NewMailAlert.cs index 8eb84bf..2fc2122 100644 --- a/Outlook2013TodoAddIn/Forms/NewMailAlert.cs +++ b/Outlook2013TodoAddIn/Forms/NewMailAlert.cs @@ -26,18 +26,13 @@ namespace Outlook2013TodoAddIn.Forms /// /// Don't close the for if the mouse is over it /// - private bool mouseIsOver = false; - - /// - /// Topmost value - /// - private const int WS_EX_TOPMOST = 0x00000008; - #endregion "Variables" + private bool mouseIsOver = false; + /// + #region "Properties" - /// /// Attached email message to open or flag /// public Microsoft.Office.Interop.Outlook.MailItem Email { get; set; } @@ -60,7 +55,7 @@ namespace Outlook2013TodoAddIn.Forms get { CreateParams value = base.CreateParams; - value.ExStyle |= WS_EX_TOPMOST; + value.ExStyle |= Constants.WS_EX_TOPMOST; return value; } }