?
Solved

Help! How to change size of max windows.

Posted on 1997-06-23
2
Medium Priority
?
264 Views
Last Modified: 2012-05-05
Problem:
My program needs to fit asides every window in focus. It's easy to do it as long as they're not maximized. I need to tell the window or exe that it is still maximized, so it doesn't behave differently. It is something like the taskbar does. How can I do the same?

It is something like an always on top program, but it is not allowed to be in the way of any menu, buttonbar or window at all, so it has to stay at the side or top of the screen and changes somehow the coordinates of it, so the other programs run like normal. An example program of such is Starfish Internet Utilities, and I need about the same.

Anyone any idea for an API-call, some C(++) code, VB-code or whatever what to achieve this?

Thanks in adv.

ABEL
0
Comment
Question by:abel
2 Comments
 
LVL 5

Accepted Solution

by:
y96andha earned 800 total points
ID: 1427590
There is a knowledge base article about creating your own windows that behave just like the taskbar does.

Try this:

PSS ID Number: Q134206
Article last modified on 08-04-1995
 
4.00
 
WINDOWS
 

---------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Win32 Software Development Kit (SDK) version 4.0
---------------------------------------------------------------------
 
SUMMARY
=======
 
The Windows 95 shell allows an application to register an application
desktop toolbar that behaves with the same look and feel as the Windows 95
taskbar. The application desktop toolbar is always attached to one of the
outside edges of the screen and can cause the size of the desktop to be
reduced so that other applications do not overlap the application desktop
toolbar.
 
The APPBAR sample code demonstrates how to implement an application desktop
toolbar that is resizable, can attach to any side of the screen, and allows
itself to be hidden in the same way the Windows 95 taskbar automatically
hides.
 
Download APPBAR.EXE, a self-extracting file, from the Microsoft Software
Library (MSL) on the following services:
 
 - CompuServe
      GO MSL
      Search for APPBAR.EXE
      Display results and download
 
 - Microsoft Download Service (MSDL)
      Dial (206) 936-6735 to connect to MSDL
      Download APPBAR.EXE
 
 - Internet (anonymous FTP)
      ftp ftp.microsoft.com
      Change to the SOFTLIB\MSLFILES directory
      Get APPBAR.EXE
 
MORE INFORMATION
================
 
The application desktop toolbar interface for Windows 95 provides an easy
way for an application to attach windows to the edge of the screen so that
they don't overlap the Windows 95 desktop or other applications. Being able
to do this is especially useful in an application-launching program such as
the Microsoft Office Manager (MOM) utility or in an application that needs
to provide status information to the user as it runs in the background.
 
The application creates its window normally and then registers itself with
the system as an application desktop toolbar (appbar). Once registered as
an appbar, any time the window moves it must negotiate with the system for
screen space by sending the requested rectangle to the system as part of an
ABM_QUERYSETPOS message. The system then checks to see if any other appbars
are using that space and adjusts the rectangle requested so as not to
overlap. When the appbar is moved, the system resizes the desktop and moves
any currently running applications so they do not overlap the appbar.
 
REFERENCES
==========
 
For more information on the application desktop toolbar interface, please
see the Chapter "Extending the Windows 95 Shell : Application Desktop
Toolbars" in the "Programmer's Guide to Windows 95."  The guide is
available in the Win32 SDK Help file under "Guides."
 


0
 
LVL 39

Author Comment

by:abel
ID: 1427591
Thanks, this will save me a lot of work! It was just the answer I needed.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 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