#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    10
    Rep Power
    0

    Shell Program to System Tray


    How would I do this. Like run a program with the shell command, then put it in the system tray when I click a button?
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    Here is an article on how to place applications in the system tray.
    http://support.microsoft.com/default...en-us%3b162613
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    10
    Rep Power
    0
    Thanks but I already know how to put my application in the system tray. I want to put an external program in the system tray though
  6. #4
  7. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    Originally posted by VashtheStampede
    Thanks but I already know how to put my application in the system tray. I want to put an external program in the system tray though
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    10
    Rep Power
    0
    What does that mean?
  10. #6
  11. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    You will have to get the handle of the spawned window with an API, probably either GetWindow or GetActiveWindow http://msdn.microsoft.com/library/de...tiveWindow.asp and pass that as the hWnd value to the system tray function.
    Last edited by Onslaught; May 19th, 2003 at 03:38 PM.

IMN logo majestic logo threadwatch logo seochat tools logo