does anyone know how to invoke a program in task-bar such as Yahoo Messenger.

i have tried sending messages to that particular window but it did not worked for me, like WM_LBUTTONDBLCLK etc.

help me out

Posted on 2001-12-03 03:06:04 by goto
Have a look at ShellExecute API function. Maybe it can help you.
This function executes a program and shows it as you want (minimized, maximized, hided, etc).
Posted on 2001-12-03 14:48:19 by CodeLover
I haven't understood which window you send messages to. Every TNA (tray notification area, the area generally near the clock) icon has a parent hidden window which receive and process messages. You have to send messages to this one, not the TNA window. If you already send your messages to the hidden window... I can't help you :).
Posted on 2001-12-03 15:33:59 by LuHa
I'm not sure of what you want to do but, If I understood well, this is what I would do.
1) Use FindWindow (if you know the class and window name) to gey its handle.
2) Use SetForegroundWindow to make window active

I hope it's usefull.

Posted on 2001-12-03 15:54:28 by dguzz

i was sending messages to the Yahoo messenger class, named "YahooBuddyMain". (it can be different on yours messenger).

SetForegroundWindow() only works if the window is in the background but not minimized to the system-tray. if it is, the function does not work.

Posted on 2001-12-04 00:07:54 by goto
Have you tried ShowWindow ?
Posted on 2001-12-04 01:02:28 by Axial

it works :alright:

combination of ShowWindow(hWnd,SW_SHOW) and SetForegroundWindow(hWnd) did the trick.

thanks to all

Posted on 2001-12-04 01:13:03 by goto