forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Determine if another app registers as an appbar?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Mar 06, 2009 1:46 am    Post subject: Determine if another app registers as an appbar? Reply with quote

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Mar 06, 2009 1:47 am    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Mar 06, 2009 2:06 pm    Post subject: Reply with quote

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 Wink 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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Mar 06, 2009 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Mar 06, 2009 5:24 pm    Post subject: Reply with quote

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 Sad

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
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Mar 06, 2009 5:28 pm    Post subject: Reply with quote

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 Sad

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 Smile

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Mar 06, 2009 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Mar 06, 2009 9:07 pm    Post subject: Reply with quote

Garrett,
What are you using to make the AppBar?

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group