| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Mar 06, 2009 1:46 am Post subject: Determine if another app registers as an appbar? |
|
|
Does anyone know if it's possible to find out what apps are registered as active appbars on the desktop?
Thanks,
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Mar 06, 2009 1:47 am Post subject: |
|
|
Hmmm, as well as find out what sides of the desktop they've taken?
Thanks,
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Mar 06, 2009 2:06 pm Post subject: |
|
|
Garrett,
List all top level windows and walk them getting their positions. If any of the position cords are along the edge of the screen then you will know. Of course it would help if none of the windows are maximized An appbar is nothing more than a toolbar without a parent window. Microsoft gave them a different class called RebarWindow32. Most rebars hold a toolbar as a client control. So an appbar which is a Rebar would be the same. Also docked appbars don't have a title bar so I guess that could be a clue as well. Also you may not be able to completely rely on the classname since many appbars are subclassed so they would not be using the system default name for the class name. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Mar 06, 2009 2:26 pm Post subject: |
|
|
Oddly(well it is Microsoft..) there doesn't seem to be a way to access the list of registered appbars. I'm guessing their reasoning is you have to query for the edge of the screen you want, and it won't return a position which is already taken.
Might help if we knew exactly what you were wanting to do, in case there is another way to handle it. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Mar 06, 2009 5:24 pm Post subject: |
|
|
Just trying to make sure my program which is using appbar doesn't conflict with others, as well, adjust my program's dimensions if another appbar shows up and either pushes mine a little bit, where I'd need to resize mine.
Yesterday, I had mine running and then ran an old program, strangely enough called "AppBar". It's a menu bar that launches programs. When I ran it, it took over the top of the screen, pushed everything down as it should, as well, it pushed my appbar on the right side of the screen down. I had/have no routine for when this happens, and about 28 pixels off the bottom of mine was now under the windows task bar and unusable
Now I could just keep an eye on my TOP coordinate, but I want to insure that at least my program plays nice and covers any other possible problems, such as if the other appbar didn't push my program down, I want to know, then I'll move my own down and adjust my own height if that happens. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Mar 06, 2009 5:28 pm Post subject: |
|
|
After I said that, I ran AppBar so I could get a screenie of it and what my bar looked like after being pushed down... But oddly enough, it didn't push my bar today. It pushed the desktop down like it should, but this time didn't push my bar down
And it's due to this inconsistency that I want to keep an eye out for other appbars and make sure my app doesn't become part of the inconsistencies that might be caused by other appbars  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Mar 06, 2009 5:45 pm Post subject: |
|
|
Probably not doable in VDS, but you should receive a notification message with new rect coordinates when you need to resize/redisplay. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Mar 06, 2009 9:07 pm Post subject: |
|
|
Garrett,
What are you using to make the AppBar? _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|