Hi all,
I am sure that i must use enumwindows function, but it return to me all windows (visibles and unvisibles and any others ...). I want to make any simple way for list of this windows into taskbar, only.
Thanks in advance
I am sure that i must use enumwindows function, but it return to me all windows (visibles and unvisibles and any others ...). I want to make any simple way for list of this windows into taskbar, only.
Thanks in advance
Enumerate the windows and check the styles and extended styles. To be included on the taskbar a window will have no parent, the WS_EX_APPWINDOW extended style and WS_VISIBLE style.
At http://spiff.tripnet.se/~iczelion/source2.html there are two examples from Comrade. One called ProcessViewer and the other one WindowViewer.
Both examples seem to have problems on XP (well, at mine at least) but the source code shows fairly well how to enumerate Processes and sort through visible windows.
Cheers,
JC
Both examples seem to have problems on XP (well, at mine at least) but the source code shows fairly well how to enumerate Processes and sort through visible windows.
Cheers,
JC