��� ������� ����������� ���� � System Tray ����� ��� ������ �����?

Previous  Top  Next

    
 

 

������, ��� ������ ������, ����������� ���� � System Tray ��� ������ ������ �� �����������. �������, ��� ��������� ��������� ��� ������������ ���� ���������� ��������� ���� �� �������� ���� � ������� ��� ��������� WM_NULL.

Code:

procedure TForm1.WndProc(var Msg : TMessage);

var

p : TPoint;

begin

case Msg.Msg of

   WM_USER + 1:

   case Msg.lParam of

     WM_RBUTTONDOWN: begin

        SetForegroundWindow(Handle);

        GetCursorPos(p);

        PopupMenu1.Popup(p.x, p.y);

        PostMessage(Handle, WM_NULL, 0, 0);

     end;

   end;

end;

inherited;

end;

 

 

 

©Drkb::01763

����� �� http://forum.sources.ru