Skip to content

Commit b61df51

Browse files
committed
fix hexstring output
1 parent 6528bfc commit b61df51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WinUIEx/TrayIcon.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class TrayIcon : IDisposable
2828
const uint NIM_MODIFY = 0x00000001;
2929
const uint NIM_DELETE = 0x00000002;
3030
const uint NIM_SETVERSION = 0x00000004;
31+
3132
private const uint TrayIconCallbackId = 0x8765;
3233
private readonly Window _window;
3334
private readonly nint _windowHandle;
@@ -421,7 +422,7 @@ private void ProcessTrayIconEvents(Message message)
421422
return;
422423
var type = (WindowsMessages)(message.LParam & 0xffff);
423424
var lparam = message.LParam & 0xffff0000;
424-
System.Diagnostics.Debug.WriteLine($"Tray {type}: LParam={lparam.ToString("0x")} WParam=0x{message.WParam.ToString("x2")}");
425+
System.Diagnostics.Debug.WriteLine($"Tray {type}: LParam=0x{lparam.ToString("x")} WParam=0x{message.WParam.ToString("x")}");
425426

426427
TrayIconEventArgs? args = null;
427428
switch (type)

0 commit comments

Comments
 (0)