D
DreamLand
Unregistered / Unconfirmed
GUEST, unregistred user!
我的trayicon中弹出菜单后,<br>将鼠标移到屏幕的其他地方(“托盘”程序响应事件的区域之外)单击左键,<br>“托盘”的弹出菜单并不会马上消失,这与其他托盘程序不相符合,随能帮<br>我解决?<br><br>代码如下<br>procedure TfrmMain.WMTTRAYICON(var message: Tmessage);<br>Var<br> Mousepos: TPoint;<br>begin<br> Getcursorpos(MousePos);<br> Self.BringToFront;<br> SetForegroundWindow(Handle);<br> Case message.LParam of<br> WM_RBUTTONDOWN:<br> mnuTrayPop.Popup(MousePos.X,MousePos.Y);<br> //PopupEx(Self, mnuTrayPop, MousePos.x, MousePos.y);(<br> WM_LBUTTONDBLCLK:<br> frmShell.Show;<br> end;<br>end;