hi
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
regards
goto
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
regards
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).
This function executes a program and shows it as you want (minimized, maximized, hided, etc).
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 :).
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.
Sincerely,
Daniel
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.
Sincerely,
Daniel
AoA
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.
regards
goto
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.
regards
goto
Have you tried ShowWindow ?
AoA
it works :alright:
combination of ShowWindow(hWnd,SW_SHOW) and SetForegroundWindow(hWnd) did the trick.
thanks to all
goto
it works :alright:
combination of ShowWindow(hWnd,SW_SHOW) and SetForegroundWindow(hWnd) did the trick.
thanks to all
goto