Solved

VB6 Application, Docked to Right of Screen, Disable Region

Posted on 2006-07-18
3
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Expert Comment

by:pradapkumar
ID: 17136063
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
ID: 17136353
0
 
LVL 10

Author Comment

by:ALaRiva
ID: 17139553
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 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