∵ .ucallbackmessage = WM_USER + 100
∴ If umsg=WM_USER + 100 ThenIf wparam = umsg=WM_USER + 100 Then
  Select Case lparam
  Case wm_lbuttondblck '双击左键
   If Form1.mnustart1.Caption = "&start server" Then
   With pnid
   .hicon = Form1.Picture1.Picture
   .sztip = "web server start" & Chr(0)
   End With
   Form1.mnustart.Caption = "& stop server"
   Form1.mnustart1.Caption = "&stop server"
   Form1.Icon = Form1.Picture1.Picture
   Else
   With pnid
   .hicon = Form1.Picture2.Picture
   .sztio = "web server stop" & Chr(0)
   End With
   Form1.mnustart.Caption = "&start server"
   Form1.mnustart1.Caption = "&start server"
   Form1.Icon = Form1.Picture2.Picture
   End If
   Shell_NotifyIcon NIM_MODIFY, pnid
   Case wm_rbuttondown
   Form1.PopupMenu Form1.mnutray, vbpopupmenurightallign, , ,Form1.mnustart1    '弹出mnutray菜单
   End Select
   End If