CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2001
    Posts
    13

    Systray Icon Help

    I've succesfully been able to create a systray icon for my program but there are a few problems. The ToolTip area is way too long for the Caption I have for it, is there anyway to specify the length of the ToolTip? Also, it takes 2 right-clicks to show the popup menu I have specified. I'm not sure why it's doing that. If anybody has any info, I'd appreciate it. Thanks~

    ~Ryan


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Systray Icon Help

    as far as I know, the ToolTip area will adjust itself according to the text that you set. Maybe you didn't terminate the string, try terminate it using NULL char, like this

    TrayIcon.szTip = TipsMsg & Chr(0) ' where TrayIcon is type NOTIFYICONDATA

    second problem, you should response to the message WM_RBUTTONDOWN rather than WM_RBUTTONDBLCLK.




    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Systray Icon Help

    Make sure you do not have any leading or trailing blanks. THe double click to cativate is a function of your program. Check it out. Possibly your code in in the Dbl_Click event instead of the _Click event

    John G

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured