A small program of WinCe was developed some time ago to detect ZigBee network signals. There is a need to display the system tray (yyicon,
Started.
Prepare a tray class policyicon. cs on the home page
uID = messageWindow = MyMessageWindow( messageWindow.uID = _Icon = ~ NotifyMessage(messageWindow.Hwnd, NIM_ADD, ( Add( IntPtr hIcon = LoadIcon(GetModuleHandle( NotifyMessage(messageWindow.Hwnd, NIM_ADD, ( NotifyMessage(messageWindow.Hwnd, NIM_ADD, ( (_Icon != NotifyMessage(messageWindow.Hwnd, NIM_ADD, ( NotifyMessage(messageWindow.Hwnd, NIM_DELETE, ( NotifyMessage(messageWindow.Hwnd, NIM_MODIFY, ( NotifyMessage(IntPtr hwnd, dwMessage, NOTIFYICONDATA notdata = notdata.cbSize = notdata.hIcon = notdata.hWnd = notdata.uCallbackMessage = notdata.uFlags = NIF_MESSAGE | notdata.uID = ret = Shell_NotifyIcon(dwMessage, API NIF_MESSAGE = NIF_ICON = WM_LBUTTONDOWN = NIM_ADD = NIM_MODIFY = NIM_DELETE = WM_NOTIFY_TRAY = + [DllImport( dwMessage, [DllImport( [DllImport( [DllImport( [DllImport( IntPtr LoadIcon(IntPtr hInst, [DllImport( MessageWindow _uID = notifyIcon = _uID = WndProc( (msg.Msg == (()msg.LParam == (()msg.WParam == (notifyIcon.Click != notifyIcon.Click(notifyIcon, }
The next step is to use this tray class.
SortedList table = strRes; netCount = caseValue = ; notifyicon_Click( caseValue = notifyicon = notifyicon.Click += Assembly asm = icon = Icon(asm.GetManifestResourceStream( notifyicon.Icon = }
Well, just remove some useless variables in the code.