How to Use WinCe pallets

Source: Internet
Author: User

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,




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.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.