hi forum members, excuse me if I bother you, but I need your help with some ideas about advanced visual c programming, this time I have a program , that with your given support , the program can get the text from the buttons which have the focus, but now I’m trying to get the window’s title that is displayed when the user press ALT + TAB for switching the task, I’m trying to get this with CBT HOOKS, but the only data that I got was information about some keys were pressed, thanks for your advice

HOW GET THE TITLE TASK WHEN ALT+TAB ARE PRESSED?
wfsCA
lisa52
The function is called EnumWindows:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/enumwindows.asp
The task manager does nothing else. It just enumerates the top level windows and call GetWindowText. Thats all!
pxgator
Beside that , how can I enumerate all top level windows
And if I can enumerate all top level windows, is the same thing like to get the name of the (next) window task , that I am going to switch with ALT + TAB keys
Thanks for your attention