Create Task List or Task Bar in C#

  • Thread starter Thread starter masterra
  • Start date Start date
M

masterra

Hello all!

I am trying to create a replacement task bar for windows (don't ask
why..) in C#, and have run into some troubles.

I am aware that i can get a list of running processes (using
System.Diagnostics.Process), however this is ALL processes, and i ONLY
WANT the ones that would show on the task bar normally.

I noticed that if i looked at a Processes MainWindowTitle property, i
could weed out most things i didn't want by just igoring those with an
empty Title, however this will miss a few!
Mainly, if i have a few open My Computer instances, this will only
catch the first one.

I also tried at least two methods using Windows API's (mainly
GetWindow, two different ways), but this returns even more junk i don't
want, and i don't see any way to tell which ones would be displayed on
the task bar.

Can anyone help?

Thanks in advance!
 
Well, the task bar only shows available windows, not those processes.

Try using the win api like EnumWindowEx or similar functions.

As you asked, I won't ask why, but I can think the question. :-)
 
I have some code using EnumWindowEx, however using it i ended up with a
lot of windows i didn't care about again. What do you mean by
"available windows" ? Have any example code?

I'll look around some more for some ways to use EnumWindowEx.

Anyone else have any examples or advice?

I'm gonna need a way to emulate the System Tray too eventually, if
anyone has any thoughts on that.

Thanks!

-Quasar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top