Browse Source

Updated readme

master
Claire 1 year ago
parent
commit
35344d26c8
  1. 3
      LunaWin/LunaWin/Globals.cs
  2. 6
      README.md

3
LunaWin/LunaWin/Globals.cs

@ -19,6 +19,9 @@ namespace LunaWin
/// </summary>
public static NotifyIcon lunaIcon = new NotifyIcon();
/// <summary>
/// startup configuration
/// </summary>
public static bool RunAtLogin;
}
}

6
README.md

@ -8,13 +8,13 @@ This project demonstrates a number of concepts, some more advanced than others.
**Introductory**
* Programmatically creating and updating a system tray icon
* Programmatically creating and updating the icon's context menu
* Programmatically creating and updating a system tray icon using [`NotifyIcon`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.notifyicon?view=windowsdesktop-8.0)
* Programmatically creating and updating the icon's context menu using [`ContextMenuStrip`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.contextmenustrip?view=windowsdesktop-8.0) and [`ToolStripMenuItem`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.toolstripmenuitem?view=windowsdesktop-8.0)
* Setting a program to run at user login (startup)
**Advanced**
* Using [`Mutex`](https://learn.microsoft.com/en-us/dotnet/api/system.threading.mutex?view=netframework-4.7.2) to find exisiting instance of application
* Using [`Mutex`](https://learn.microsoft.com/en-us/dotnet/api/system.threading.mutex?view=netframework-4.7.2) to find existing instance of application
* Using [`DllImport`](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.dllimportattribute?view=netframework-4.7.2) to access the current Windows 10+ theme (light or dark) natively
* Overloading [`WndProc`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.control.wndproc?view=windowsdesktop-8.0) to handle system-wide messaging, to detect Windows 10+ theme changes
* Accessing memory directly through pointers and [`unsafe`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/unsafe) code handling
Loading…
Cancel
Save