solve mystery failure to popout menu

This commit is contained in:
Kang Yu 2024-06-22 16:21:05 -07:00
parent 25f6558ca2
commit 14122b8e0f
3 changed files with 6 additions and 6 deletions

View file

@ -18,6 +18,7 @@ namespace PersistentWindows.SystrayShell
messageLoop = new Thread(() =>
{
HotKeyForm hkf = new HotKeyForm(hotkey);
hkwin = new HotKeyWindow(hotkey);
Application.Run(hkf);
})
{
@ -43,8 +44,6 @@ namespace PersistentWindows.SystrayShell
public HotKeyForm(uint hotkey)
{
hkwin = new HotKeyWindow(hotkey);
//InitializeComponent();
var r = User32.RegisterHotKey(this.Handle, 0, (int)User32.KeyModifier.Alt, hotkey); // Register Alt + W
}