Ok... everything is working fine right now...

I wrote a procedure returning a message called WM_ICONCLICK, I 
assigned this message to uCallbackMessage. This procedure shows the 
application when I double click on the icon. Application is hidden 
from task bar when minimized.
  I also tried the popup menu just by creating it locally in the 
procedure and poping it up where the mouse is clicked... works fine!

Thanks

--- In [email protected], "shield_019" <[EMAIL PROTECTED]> wrote:
> > I guess you haven't directly used Shell_NotifyIcon to add the 
icon.
> 
> > When you fill in the TNotifyIconData record, you specify a window 
> handle 
> > in the hWnd field and a message identifier in the 
uCallbackMessage 
> > field. When something happens to the icon in the notification 
area, 
> the 
> > shell will send the given window the specified message. The 
lParam 
> > parameter of that message will tell you which event occured, such 
> as 
> > wm_MouseMove or wm_LButtonDown. Everything is explained in MSDN; 
> start 
> > at the Shell_NotifyIcon topic and follow the links from there.
> > 
> > To display a popup menu, call the TrackPopupMenuEx API function.
> > 
> > -- 
> > Rob
> 
> Well I have used the Shell_NotifyIcon also Assigned a handle to it 
> but did not know about TrackPopupMenuEx... I'll give it a look
> 
> Thanks for your assistance
> 
> Vahan




-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to