Solved

VB6 Application, Docked to Right of Screen, Disable Region

Posted on 2006-07-18
3
232 Views
Last Modified: 2006-11-18
OK, This one is a little hard to explain.

Remember back when Office had that failed experiment called Quick Launch Bar, or whatever it was.

Basically what I have right now is an application that I dock to the right side of the screen, and force it to stay on top.  However, what I'd like to do is get it so that the region that it is in (right side) is pretty much disabled.  So if someone launches an application, and they try and maximize, the application will only stretch as far right as possible until it reaches the left border of my application.

A Friend mentioned that there was an API for this, but I can't find anything on it.  I've searched for quite some time now, and I think the problem is that I don't know how to word my searches since I don't know what you would call this.

Any help would be appreciated, and if someone needs further explanation, just ask.
Thanks.

- Anthony
0
Comment
Question by:ALaRiva
3 Comments
 
LVL 9

Expert Comment

by:pradapkumar
Comment Utility
As I know one API is available for your problem. But it only keeps your application on top of all the visible windows.
Pls read following links for that.

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20699212.html?query=top+window+api&topics=93

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10021942.html?query=top+window+api&topics=93

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20434302.html?query=top+window+api&topics=93

But i  am not sure that some system windows (like task manager in XP, NT, 2000) will be overridden by the above api.

But you need to code some VC++ codeing to control other applications to detect that app's right border reached your app's left border.

0
 
LVL 9

Accepted Solution

by:
Naveen Swamy earned 400 total points
Comment Utility
0
 
LVL 10

Author Comment

by:ALaRiva
Comment Utility
navstar16,
The first link you provided gave me the exact code I needed.  As with what the links says, there were a couple of examples on the NET, but they were so convoluted that you couldn't figure out much with it.  That example was simple, and to the point.

pradapkumar,
I was already using the StayOnTop method, navstar16 hit the nail on the head though, Thanks for the Effort.

- Anthony
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now